nvm install

What

node version managernode

Install (windows)

Problem
use npm install: npm install nvm -g,but when run nvm, show the error hint: This is not the package you are looking for: please go to nvm.shgit

Solutiongithub

Install (macos)

[touch ~/.bash_profile] // open cmd, enter current user's home directory, if there's no file named .bash_profile, then use the cmd create one, or you will encounter "command not found: nvm" after installing
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
複製代碼

Usage

  • nvm ls // list the installed node version
  • nvm ls-remote
  • nvm install // install the pointed node version
  • nvm uninstall
  • nvm install node: install the lastest version
  • nvm unstall
  • nvm current // show the current node version being used
  • nvm use
相關文章
相關標籤/搜索