wfbky

 

npm ERR! code ENOSELF
npm ERR! Refusing to install package with name "webpack" under a package
npm ERR! also called "webpack". 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\wo\AppData\Roaming\npm-cache\_logs\2018-11-19T09_18_33_619Z-debug.log


错误的ERR! 代码ENOSELF
错误的ERR! 拒绝在包下安装名为“webpack”的包
错误的ERR! 也被称为“webpack”。 你的项目名称是否相同?
错误的ERR! 作为您正在安装的依赖项?
错误的ERR!
错误的ERR! 有关更多信息,请参阅:
错误的ERR!<https://docs.npmjs.com/cli/install#limitations-of-npms-install-algorithm>

错误的ERR! 可以在以下位置找到此运行的完整日志:

 
解决方法
检查package.json下的name字段是不是项目名字和你安装的那个包名字相同了,如果一样就会报那个错,把项目名字改成和你安装不冲突的名字
重新安装  npm install express   即可

分类:

技术点:

相关文章:

  • 2021-08-01
  • 2021-08-18
  • 2022-01-06
  • 2021-04-11
  • 2021-11-05
  • 2021-07-25
  • 2021-08-06
  • 2021-08-05
猜你喜欢
  • 2021-11-10
  • 2021-10-03
  • 2021-08-04
  • 2021-05-08
  • 2021-10-26
  • 2021-09-18
  • 2021-12-14
相关资源
相似解决方案