錯誤1:
npm ERR! fatal: unable to connect to github.com
解決方案:
ssh訪問切換為https訪問
git config --global url."https://" .insteadOf git://
錯誤2:fatal: unable to access 'https://github.com/nhn/raphael.git/': OpenSSL SSL_read: Connection was reset, errno 10054
原因:下載安裝的依賴包太大,導(dǎo)致git請求超時了,可以通過修改git http.postBuffer的大小來解決此問題。
解決方案:
*修改postBuffer值 注:524288000(500Mb)*可以自己根據(jù)情況設(shè)置
git config --global https.postBuffer 524288000
若想要更直觀的修改配置,可以直接打開配置文件進行修改
打開并編輯git配置文件
git config --edit --global
將如下內(nèi)容添加至配置文件
[http]
postBuffer = 524288000
[url "https://"]
insteadOf = git://
特別注意:
由于Github位于外網(wǎng),故改動后仍會因為網(wǎng)絡(luò)原因造成install失敗的幾率,可以多嘗試npm install幾次,
其他相關(guān)問題大概率切換npm源能解決問題
npm config set registry https://registry.npm.taobao.org
檢測是否切換到了淘寶源文章來源:http://www.zghlxwxcb.cn/news/detail-509551.html
npm get registry
其他錯誤 多查查相關(guān)資料和求助各平臺的大佬 具體情況具體分析,多問多看多想文章來源地址http://www.zghlxwxcb.cn/news/detail-509551.html
到了這里,關(guān)于fatal: unable to access ‘https://github.com/nhn/raphael.git/‘: OpenSSL SSL_read: Connection was rese的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!