PS E:\vue\webpack1> npm i webpack webpack-cli -D
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!
...
问题是 你起的名字 不能和webpack 同名 改成webpack1