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