npm i -S taro-echarts 安装报错 Refusing to install package with name "taro-echarts" under a package

报错信息

npm ERR! code ENOSELF
npm ERR! Refusing to install package with name "taro-echarts" under a package
npm ERR! also called "taro-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! E:\nodeJs\node_cache\_logs\2020-12-03T09_49_57_601Z-debug.log

 

解决:

项目名称和插件名称重名了,将项目名称更改了,这个报错应该就OK了;

(package.json中的name的值更改了)

posted @ 2020-12-03 18:07  超级玛丽和大力水手  阅读(306)  评论(0编辑  收藏  举报