npm ERR! missing script: start

Updated at 07-Aug-2022, By samar

npm ERR! missing script: start

In this session, we are going to try to solve the "npm ERR! missing script: start" puzzle by using the computer language.

I am getting an error `npm ERR! missing script: start` while executing the **`npm start`** command after creating a react app using **`npx create-react-app react-app`**.
  • First run the npm uninstall -g create-react-app command and after that run npm install -g create-react-app and npx create-react-app my-app to get the solution for the error npm ERR! missing script: start.

    npm uninstall -g create-react-app
    npm install -g create-react-app
    npx create-react-app my-app
  • package.json

    "scripts": {
        "start": "react-scripts start"

    find package.json file and add "start": "react-scripts start" under scripts.

Back to code snippet queries related nodejs