How to install and use NVM (Node Version Manager) to switch NodeJS Versions

preview_player
Показать описание
Today lets see How to install and use NVM (Node Version Manager) to switch NodeJS Versions. This works in Windows, Mac, and Linux. NVM stands for Node Version Manager and is a popular way for you to manage multiple versions of nodejs at once and easily switch between them.

Commands:

I would recommend you restart terminal after this (and you can be done), but if you choose not to, then run the following commands to finish set up.

2. export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
3. export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"

Links:

Рекомендации по теме
Комментарии
Автор

Thank you so much for this tutorial bro :D

renangranatodutra