yarn安裝依賴報錯


報錯1:
error Command failed. Exit code: 128 ---錯誤碼
報錯2:
error An unexpected error occurred: "https://registry.npmjs.org/eventemitter3/-/eventemitter3-2.0.3.tgz: connect ETIMEDOUT 104.16.26.35:443".

以上問題都可以通過下面方式解決
原因 緩存導致

1 yarn cache clean
2 rm yarn.lock
3 rm -rf node_modules/
4 yarn    


免責聲明!

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



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