海外镜像系统会比较慢
能用 get指令查询registry
npm congfig get registry
正版結果为
http://registry.npmjs.org
用set指令换为阿里巴巴的镜像系统就可以了
唐山市小程序定制开发npm config set registry http://registry.npm.taobao.org
or
npm install --registry=https://registry.npm.taobao.org
--disturl=https://npm.taobao.org/mirrors/node
文章内容来源于:田珊珊个人网站
来源于详细地址:http://www.tianshan277.com/856.html