國外鏡像會很慢
可用 get命令查看registry
npm congfig get registry
原版結果為
http://registry.npmjs.org
用set命令換成阿里的鏡像就可以了
npm config set registry https://registry.npm.taobao.org
再執行命令
npm install
或者直接執行
npm install --registry=https://registry.npm.taobao.org
國外鏡像會很慢
可用 get命令查看registry
npm congfig get registry
原版結果為
http://registry.npmjs.org
用set命令換成阿里的鏡像就可以了
npm config set registry https://registry.npm.taobao.org
再執行命令
npm install
或者直接執行
npm install --registry=https://registry.npm.taobao.org
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。