npm更换成cnpm
cmd输入:
npm install -g cnpm --registry=https://registry.npmmirror.com/
全局配置:
npm config set registry https://registry.npmmirror.com/ -g
查看是否更换成功:
npm config get registry
npm install -g cnpm --registry=https://registry.npmmirror.com/
全局配置:
npm config set registry https://registry.npmmirror.com/ -g
npm config get registry