Skip to content

Instantly share code, notes, and snippets.

@styk-tv
Last active March 18, 2023 08:54
Show Gist options
  • Save styk-tv/1bbdd38f1a3c2b68f5d9e3240ec39fcc to your computer and use it in GitHub Desktop.
Save styk-tv/1bbdd38f1a3c2b68f5d9e3240ec39fcc to your computer and use it in GitHub Desktop.
NVM NODE REACT SETUP
-== NVM ==-
REPO: https://github.com/nvm-sh/nvm#install--update-script
INSTALL/UPDATE: wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
LOAD:
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
nvm -v
0.39.3
--= NODE =--
LIST REMOTE VERSIONS: nvm ls-remote --lts >> picking v16.19.0
INSTALL SPECIFIC: nvm install v16.19.0
USE: nvm use v16.19.0
SET-DEFAULT: nvm alias default v16.19.0
node -v
v16.19.0
--= NPM =--
SITE: https://www.npmjs.com/package/npm - will auto-install depending on node but check requirements on this site
INSTALL: curl -qL https://www.npmjs.com/install.sh | sh
npm -v
9.4.0
--= YARN =--
INSTALL: npm install --global yarn
yarn -v
1.22.19
--= REACT ==-
yarn add react
yarn add v1.22.19
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 3 new dependencies.
info Direct dependencies
└─ [email protected]
info All dependencies
├─ [email protected]
├─ [email protected]
└─ [email protected]
Done in 0.93s.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment