I just cloned a react app to my local computer from github, but when I go to run an npm start on it, I get this error:

Nawfeul Hamdi

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
Avi

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:

  1. Delete Node_modules and package-lock.json file
  2. 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

  3. then do npm install again

that might resolve your issue.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

I tried to run command "npm run start " and it showd up with this error in react js

How can I get data from a local file into my React app?

Why do I get the error "A valid Flask application was not obtained from..." when I use the flask cli to run my app?

How do I "run" a dockerfile from a github repo I have cloned?

When I run "npm start" to run a React app , it doesn't give any errors but hangs forever instead

whenever i run npm start on my react it gives an error. Image below

I get an error when I try to install my project packages with npm i

I'm getting an unusual error when I'm trying to start my react app. It says that CleanWebpackPlugin is not a constructor

Why I get an error when I try to deploy a react app to GitHub Pages?

React App: Why I get an error when I try to run npm start script?

I get error when i run My function in Logic App Designer , following the azure sample project documentation

npm start command not working, when I try to run my React application

I got a error,when i start my computer

How can I test someone's Rails app cloned from GitHub if I am running a different version of Ruby on my machine?

Node JS error when I run 'npm start', maybe KrakenJS?

When I run npm run start I get this error

NPM ERR! CODE EINTEGRITY when i run create react app

My react native android application does not start from root component when I exit app and I reopen it

In my project I wrote with Angular, I get a 'Cannot Get' error when I run it

I cloned repository from GitHub but there are missing commits on my local cloned repository

If i run npx or npm install create-react-app in my windows terminal. Is displaying error s

"npm run start" not creating a local server for my react app

I get this error when i want to run my django app :

npm start is starting the server.js not my React app, how can I use it to start my app?

Why does my React app disappear when I run it

Can I run index.html with React without npm start and npx create-react-app?

if i deleted my project but i have that in my github so did i have to re install all the dependencies again or just run npm install?

how can i run a github react native app in my system?

I get an error on MariaDB allways I start my App