npm install 安裝包報錯


D:\hapi_learn>npm install --save hapi@17.x.x
npm ERR! code ENOSELF
npm ERR! Refusing to install package with name "hapi" under a package
npm ERR! also called "hapi". Did you name your project the same
npm ERR! as the dependency you're installing?
npm ERR!
npm ERR! For more information, see:
npm ERR! <https://docs.npmjs.com/cli/install#limitations-of-npms-install-algorithm>

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\xwanga\AppData\Roaming\npm-cache\_logs\2018-03-10T07_15_40_621Z-debug.log

解決方法就是,修改package.json中的name名稱,再重新執行安裝命令即可。

 


免責聲明!

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



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