用npm安装webpack的时候报了这个错: Refusing to install webpack as a dependency of itself 翻译过来大概是:'拒绝安装webpack其本身的依赖'. 然后我试了试安装其他的包,都没问题,唯独webpack,见鬼了. 我想到npm init的时候,name名给的就是webpack,于是我进到package.json中,把name改成了myApp,再安装webpack,成功了! 这些坑真是...…
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…
MacBook-Air:~ xxx$ npm install webpack -g npm WARN invalid config registry="" npm WARN invalid config Must be a full url with 'http://' npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/webpack/node_modules/acorn-dyna…