記錄windows下搭建前端開發(fā)環(huán)境 安裝問題 node vue


淘寶鏡像

國內(nèi)使用npm如果不翻墻基本上是沒法正常使用的,如果沒法翻墻又要用,解決辦法只有使用淘寶鏡像了
配置是:

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

切換回來是:

npm config set registry https://registry.npmjs.org/

如果不想直接配置npm,也可以在命令行中配置,在命令的后面添加這一段

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

如果要查看npm使用哪個源,可以執(zhí)行命令查看

npm config get registry


設(shè)置代理

https://baijiahao.baidu.com/s?id=1603409484949165821&wfr=spider&for=pc

無法安裝node-sass

https://blog.csdn.net/df981011512/article/details/78989532

【新版解決方案】:一句命令解決 npm i node-sass --sass_binary_site=https://npm.taobao.org/mirrors/node-sass/


沒有python2.7

gyp verb check python checking for Python executable "python2" in the PATH

缺少python2.7支持 可快速使用以下語句完成安裝

npm install --global --production windows-build-tools

到時候會自動下載python的


git clone 問題

error: RPC failed; curl 18 transfer closed with outstanding read data remain
git config --global http.postBuffer 524288000

https://blog.csdn.net/dzhongjie/article/details/81152983

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容