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

相關文章
相關標籤/搜索