使用npm i 編譯vue項目出現無法下載github.com中的對應的包源文件
報錯信息如下:
npm ERR! fatal: unable to access 'https://github.com/nhn/raphael.git/': Empty reply from server
npm ERR! fatal: unable to connect to github.com
以下圖片為另一個引用包錯誤信息和以上錯誤信息為同一類問題
解決方案:
問題解決來源網址:https://blog.csdn.net/baidu_30809315/article/details/86520093
在vue項目下執行如下命令:
git config --global url."https://".insteadOf git://
執行完以上命令后在從新編譯vue項目
npm i