Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing react-redux from cmd error

I have a problem with installing react-redux from github. I downloaded the zip file into my folder and now what to install react-redux with the usual command:

npm install --save react-redux

I ran the command having my zip file extracted in the redux test folder.

I believe I'm not supposed to install the react redux into the same folder as the extracted zip file but how do I Then reference the zip extraction so that redux know where it is? enter image description here

like image 770
Eugen Sunic Avatar asked Nov 29 '22 22:11

Eugen Sunic


1 Answers

One more reason could be, If the name of your project in package.json is same as the dependency you are trying to install you will get this error

for example if you project name in package.json is

"name": "react-redux"

and if you try to install

npm install react-redux

you will get this error.

like image 52
Ignatius Andrew Avatar answered Dec 05 '22 03:12

Ignatius Andrew