0

Starting a project with react.js, I create the project to write npm start a project I get the error, fuy to the address that says there, but I do not know how to fix it because what I ask help you the error is this: npm Err! Missing script: start. Npm Err! A complete log of this run can be found in npm Err! C:-Users-Sanvicente-Appdata-Roaming-npm-cache-_logs-2020-08-27t20_09_40_583z-debug.log. (I'm starting with react)enter image description here

1
  • 2
    Could you share your source code? This error indicate that you didn't have a npm "start" script inside your package.json Commented Aug 27, 2020 at 21:23

1 Answer 1

1

If you have created react app using npx create-react-app <app_name> command then you should find a package.json file inside the <app_name> folder. Ensure that that file has the following:

"scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  }
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.