Install script
To install or update nvm, you can use the install script using cURL:
1 | curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash |
or Wget:
1 | wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash |
安装完成后关闭终端,重新打开终端输入 nvm 验证一下是否安装成功,当出现“Node Version Manager”时,说明已安装成功。
全局npm包路径
1 | /Users/wujingxiu/.nvm/versions/node/v10.10.0/lib |