npm用阿里的镜像

1.npm install 后面指定库地址npm

--registry=https://registry.npm.taobao.org

2.或者直接安装cnpm,而后用cnpm取代npmcode

npm instal -g cnpm --registry=https://registry.npm.taobao.orgcnpm

3.直接换registry,不用安装其它,直接使用镜像co

npm config set registry https://registry.npm.taobao.orgconfig

相关文章
相关标签/搜索