【問題】解決npm install時因無法訪問github而報錯


【問題】解決npm install時因無法訪問github而報錯

問題

npm install node-sass時因無法訪問github而報錯

解決

npm install --save node-sass --registry=https://registry.npm.taobao.org --disturl=https://npm.taobao.org/dist --sass-binary-site=http://npm.taobao.org/mirrors/node-sass

參數

--registry=https://registry.npm.taobao.org 淘寶npm包鏡像
--disturl=https://npm.taobao.org/dist 淘寶node源碼鏡像,一些二進制包編譯時用
--sass-binary-site=http://npm.taobao.org/mirrors/node-sass node-sass鏡像


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM