npm安裝依賴失敗問題


如題,create-react-app創建項目后,使用npm安裝axios或者react-router-dom失敗,出現如下圖,再安裝所有依賴都失敗

錯誤信息:unbuild: sill gentlyRm target.inParent = false

⸨ ░░░░░░⸩ ⠸ unbuild: sill gentlyRm target.inParent = false
npm WARN rm not removing D:\huangyang\demo\my-app\node_modules\.bin\rimraf.cmd as it wasn't installed by D:\huangyang\demo\my-app\node_modules\rimraf
npm WARN rm not removing D:\huangyang\demo\my-app\node_modules\.bin\rimraf as it wasn't installed by D:\huangyang\demo\my-app\node_modules\rimraf

解決辦法:刪除整個node_modules,重新安裝

 


免責聲明!

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



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