Problem with install react-dom


Well I was watching tutorials about reactjs then installing dependencies I used this command

npm install react react-dom

but at the moment that I should install them I get this error

asked by Carlos Alexander Lemus Mojica 16.06.2017 в 16:18

1 answer


You must change the property name of your package.json , the error;


Refusing to install react as dependency of itself

It means that you are installing a module within a folder named module or that the property name of your package.json is equal to a module installed , it would be enough to change what was said at the beginning and maybe the name of the project folder

answered by 16.06.2017 / 16:22