node工具

31 阅读1分钟

nvm

github.com/coreybutler…

  • nvm-noinstall.zip:绿色免安装版,但使用时需进行配置。
  • nvm-setup.zip:安装版,推荐使用。
  • Source code(zip):zip压缩的源码。
  • Sourc code(tar.gz):tar.gz的源码,一般用于*nix系统。
nvm ls   // 查看目前已经安装的版本

nvm install 6.10.0  // 安装指定的版本的nodejs

nvm use 6.10.0  // 使用指定版本的nodejs

npm

npm ls -g --depth 0 #查看全局安装过的包

cnpm install supervisor -g #进程管理
supervisor --harmony fileName 


# 使用nrm工具切换淘宝源
npx nrm use taobao

# 如果之后需要切换回官方源可使用
npx nrm use npm