npm ERR! Windows_NT 6.1.7601 npm ERR! argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nod

npm ERR! Windows_NT 6.1.7601
npm ERR! argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\
node_modules\npm\bin\npm-cli.js” “install” “webpack” “–save-dev”
npm ERR! node v6.9.2
npm ERR! npm v3.10.9
npm ERR! code ENOSELF
npm ERR! Refusing to install webpack as a dependency of itself
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request:
npm ERR! D:\webpack\npm-debug.log

解决方案:

出现问题是因为:package.json中已经有webpack了,换个名字就行了

你可能感兴趣的:(node.js,webpack)