简体   繁体   中英

Issue with NPM start ( React)

I have just tried to view an old application of mine using npm start but it wont load keep getting the error.

Cannot find module 'C:\Users\Team Knowhow\development\Punk-API\node_modules\react-scripts\bin\react-scripts.js. 

I tried creating a new react app and NPM start works fine so have no idea what the issue is with my old react app and why NPM start does not work.

Have you installed dependencies first using npm install .

If done already, try removing node_modules folder and installing dependencies again.

Make sure you have installed all dependencies including react-scripts !

You've to ensure that all the dependencies that your application is using is mentioned in the correct manner with their correct version in your pacakage.json file. And if that looks alright then run

npm i

or

npm install

This command will download all the dependencies that are mentioned in your package.json file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM