npm ERR! missing script: start

Created 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

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Buy Me A Coffee

Don't forget to share this article! Help us spread the word by clicking the share button below.

We appreciate your support and are committed to providing you valuable and informative content.

We are thankful for your never ending support.