对于大陆用户来说,在使用npm时,深受网速的影响,常常有下载缓慢或者丢包的情况,那么最好还是安装一个淘宝镜像吧。
npm install -g cnpm --registry=https://registry.npm.taobao.org
使用方法为:将 npm 改为 cnpm
示例:npm install => cnpm install
对于大陆用户来说,在使用npm时,深受网速的影响,常常有下载缓慢或者丢包的情况,那么最好还是安装一个淘宝镜像吧。
npm install -g cnpm --registry=https://registry.npm.taobao.org
使用方法为:将 npm 改为 cnpm
示例:npm install => cnpm install