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?

As a beginner webpack, you certainly stepped on the pit.

Project name is webpack, so when will generate a package.json initialization file, this file has a name attribute, he is the name of your project, when the installation webpack by npm install webpack will be error, expressed the same name a.

The name change file attributes projects package.json click on it, then installation will be successful in

 

 

Guess you like

Origin www.cnblogs.com/lyt0207/p/12548180.html