webpack问题记录

作者: MJ 分类: webpack 发布时间: 2019-10-20 16:43

1:安装 npm install webpack webpack-cli –save-dev 报错:

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>

解决办法:package.json中的 name 为webpack,改成其他名字即可,比如webpack1

欢迎关注小程序,感谢您的支持!

如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!

发表评论

电子邮件地址不会被公开。 必填项已用*标注