How Install Multiple Versions of Node.js and Manage it Using NVM Node Version Manager
node package manager (NPM)
a)
#Install command line developer tools.
$ xcode-select --install
b)
Install latest version of NVM
https://github.com/creationix/nvm#git...
-- Clone NVM
$ cd ~/
$ git clone https://github.com/creationix/nvm.git .nvm
-- Checkout latest version of nvm
$ cd ~/.nvm
$ git checkout v0.33.11
-- Activate NVM
$ . nvm.sh
-- Now add these lines to your ~/.bashrc, ~/.profile, or ~/.zshrc file to have it automatically sourced upon login:
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
c)
List your installed node versions:
$ nvm list
d)
List the available node versions in the cloud:
$ nvm ls-remote
$ nvm ls-remote | tail -n9
e)
Install node of version 10.6.0
$ nvm install 10.6.0
$ nvm use 10.6.0
$ nvm alias default1 10.6.0
$ nvm list
$ nvm unalias default1
Смотрите видео How Install Multiple Versions of Node.js and Manage it Using NVM Node Version Manager онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь ATOM 17 Июль 2018, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 239 раз и оно понравилось 1 людям.