Command failed: git -c core.longpaths=true config --get remote.origin.url


「Unable to Connect to GitHub.com For Cloning」
Error: Command failed: git -c core.longpaths=true config --get remote.origin.url
git@gitee.com: Permission denied (publickey).
此處原因應該是因為網絡無法透過git://方式將package download下來
github/gitee clone/push等權限不足可以嘗試重新配置密鑰或更換git的Down方式

清除緩存: npm cache clear
告訴git Download方式為: git config --global url."https://".insteadOf git:// 

如果執行以上兩條還有WARN警告,可嘗試更新NPM版本
更新npm版本:npm install -g npm(npm 新版本中無需使用clear命令)


免責聲明!

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



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