node 指令管理

121 阅读1分钟

清除缓存(npm install 安装失败时,使用)

npm cache verify

查看镜像源

npm config get registry 

设置镜像(淘宝)

npm config set registry https://registry.npm.taobao.org --global

node升级

n stable

查看已安装的模块

npm list