I am configuring react, webpack, and babel, but when installing react with the following command:
npm i react react-dom --save-dev
I get the following error:
npm ERR! code ENOSELF
npm ERR! Refusing to install package with name "react" under a package
npm ERR! also called "react". Did you name your project the same
npm ERR! as the dependency you're installing?
npm ERR!
npm ERR! For more information, see:
npm ERR! <https://docs.npmjs.com/cli/install#limitations-of-npms-install-algorithm>
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\TecnologyStar\AppData\Roaming\npm-cache\_logs18-06-06T23_45_47_061Z-debug.log
If someone might have the same mistake, what was the solution? I investigate but I still do not solve it.