Tag Archives: yarn

node react #fasttrack

node react #fasttrack

as root

# node -v
# npm install -g create-react-app
# wget https://go.microsoft.com/fwlink/?LinkID=760868
# dpkg -i code.deb

as user

$ create-react-app myapp
$ cd myapp
$ yarn start
$ code

oracle cloud oci linux & node & theai install

install theai prereqs (as root)

# yum install gcc
# yum install gcc-c++
# yum install nodejs
# npm -g install yarn

build theia

$ mkdir mytheia
$ cd mytheia
$ vi package.json 
$ # (C&P from https://theia-ide.org/docs/composing_applications)
$ yarn # will autoinstall everything from your package.json
$ yarn theia build (takes approx 400 seconds)

start theia

$ cd mytheia
$ nohup yarn theia start &

create a SSH tunnel from your local PC to remote OCI

$ ssh -L 3000:localhost:3000 opc@my.oci.vm -N &

open http://localhost:3000

ubuntu – cmdtest yarn v node yarn

ubuntu – cmdtest yarn v node yarn (https://yarnpkg.com/en/)

to run node yarn instead of cmdtest yarn you will need to use npm

# npm install -g yarn

and then specify full path to node yarn

$ /usr/local/bin/yarn
yarn install v1.16.0
[1/4] Resolving packages...
[2/4] Fetching packages...

error electron-builder@20.39.0: 
The engine "node" is incompatible with this module. 
Expected version ">=8.12.0". Got "8.10.0"

error Found incompatible module.

info Visit https://yarnpkg.com/en/docs/cli/install 
for documentation about this command.

good luck