npm安裝echarts報錯


npm ERR! code ENOSELF
npm ERR! Refusing to install package with name "echarts" under a package
npm ERR! also called "echarts". 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\wuqilang\AppData\Roaming\npm-cache\_logs\2020-02-15T05_03_00_902Z-debug.log

原因:項目名稱和插件名稱相同,將項目名稱改掉,同時將package.json中name值改掉。創建項目的時候,不要起用插件名當做項目名。


免責聲明!

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



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