淘寶鏡像
國內(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
【新版解決方案】:一句命令解決 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