npm

npm更换源

1
2
3
4
5
6
7
8
9
10
11
npm get registry
npm config set registry http://registry.npm.taobao.org/
yarn config set registry http://registry.npm.taobao.org/

# 安装淘宝npm
npm install -g cnpm --registry=https://registry.npm.taobao.org

npm list -g --depth 0
npm cache verify
npm cache clean --force
npm uninstall *

https://nodejs.org/en/