简体   繁体   中英

npm ERR! missing scripts: "start"

I can't run my project it says:

christian@MacBook-Air-di-christian React-Fito-v1.0-01-November-2021 % npm start npm ERR: Missing script? "start" npm ERR, npm ERR: Did you mean one of these: npm ERR. npm star # Mark your favorite packages npm ERR. npm stars # View packages marked as favorites npm ERR! npm ERR! To see a list of scripts, run: npm ERR! npm run npm ERR! A complete log of this run can be found in:..

My package.json scripts is:

"scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },

I had similar Error in my code. I just was in the wrong folder. you have to enter the folder with all the packages to run the command npm start.

Open the folder in VS code

Inside VS terminal you can type this code:

cd fileName
npm start
file name@0.1.0 start
react-scripts start

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