I just cloned a react app to my local computer from GitHub, and I set npm install but when I go to run an npm start on it, I get this error:
C:\Users\NOUREDDINE\Desktop\Redux>npm start
npm ERR! path C:\Users\NOUREDDINE\Desktop\Redux\package.json
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\NOUREDDINE\Desktop\Redux\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\NOUREDDINE\AppData\Roaming\npm-cache\_logs\2019-06-06T21_34_57_558Z-debug.logand
First, you need to go to that folder where package.json resides and open cmd by pressing SHIFT+ right click on that folder(please check path, it should be correct), then do npm install
, after that do npm start
.
If it's worked fine then good and if you already installed the dependency then do the following things:
clear cache (npm cache clean --force
) or by going to these folders c:/users/username/AppData/Roaming/npm-cache and c:/users/username/AppData/Roaming/npm
then do npm install
again
that might resolve your issue.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments