用npm安装webpack的时候报了这个错:Refusing to install webpack as a dependency of itself
翻译过来大概是:‘拒绝安装webpack其本身的依赖’。
然后我试了试安装其他的包,都没问题,唯独webpack,见鬼了。
我想到npm init
的时候,name名给的就是webpack,于是我进到package.json
中,把name改成了myApp
,再安装webpack,成功了!
这些坑真是...
相关文章
- 12-04Node Newbie Error – NPM Refusing to Install Package as a Dependency of Itself
- 12-04Refusing to install package with name "webpack" under a package
- 12-04npm WARN install Refusing to install vue-router as a dependency of itself
- 12-04webpack笔记_(2)_Refusing to install webpack as a dependency of itself
- 12-04安装webpack出现“Refusing to install package with name "webpack" under a package”
- 12-04Refusing to install webpack as a dependency of itself
- 12-04npm ERR! Refusing to install package with name "webpack" under a package -----