Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Update node with NVM (Node Version Manager (nvm)
- # Download the install script
- curl -sL https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.0/install.sh -o install_nvm.sh
- # Run the install script
- bash install_nvm.sh
- # Configure
- export NVM_DIR="$HOME/.nvm"
- [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
- [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
- # Restart your terminal
- command -v nvm
- # Use nvm to install the latest LTS release of Node.js
- nvm install --lts
- nvm install node
- # Switch to another version
- nvm use 10.16.3
- nvm use node
- Source
- https://heynode.com/tutorial/install-nodejs-locally-nvm/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement