nvm
1
is a version manager for
Node.js️
2
.
Dependencies
Required
1. Install
NOTE
Use
nvm
to install latestnode
version.
2. Configure
2.1. Convenience script
NOTE
init-nvm.sh
is a convenience script that does the following:
[ -z "$NVM_DIR" ] && export NVM_DIR="$HOME/.nvm"
source /usr/share/nvm/nvm.sh
source /usr/share/nvm/bash_completion
source /usr/share/nvm/install-nvm-exec
2.2. Install node and npm
NOTE
2.3. Auto nvm-use
NOTE
If
.nvmrc
exists aftercd
, switch to specified version, otherwise, usedefault
.