- 快速删
npm install rimraf -g
rimraf node_modules
- npm cache clean -f
- npm install -g n stable --force
- npm install -g n(一般出错后再执行4)
- npm install -g n --force
- npm stable
- npm install express --save
- //查看源
npm config get registry
//更换源
npm config set registry https://registry.npmjs.org
//淘宝源
npm config set registry https://registry.npm.taobao.org