close

[Fixed] npm ERR! missing script: start

Today We are Going To Solve npm ERR! missing script: start in nodejs. Here we will Discuss All Possible Solutions and How this error Occurs So let’s get started with this Article.

How to Fix npm ERR! missing script: start Error?

  1. How to Fix npm ERR! missing script: start Error?

    To Fix npm ERR! missing script: start Error just Add the following code to your package.json. To solve this error you have to just add the following code to your package.json. And you can easily solve your error. "scripts": { "start": "node your-script.js" }

  2. npm ERR! missing script: start

    To Fix npm ERR! missing script: start Error just Run node your-script.js directly. You can solve this error by just running the following code node your-script.js directly

Solution 1 : Add the following code to your package.json

To solve this error you have to just add the following code to your package.json. And you can easily solve your error.

"scripts": {
    "start": "node your-script.js"
}

Solution 2 : Run node your-script.js directly

You can solve this error by just running the following code

node your-script.js directly

Solution 2 : Run the following commands

You have to just run the following command one by one and your error will be solved. So just try that.

npm rm -g create-react-app
npm install -g create-react-app
npx create-react-app my-app

Conclusion

So these were all possible solutions to this error. I hope your error has been solved by this article. In the comments, tell us which solution worked? If you liked our article, please share it on your social media and comment on your suggestions. Thank you.

Also Read This Solutions

1 thought on “[Fixed] npm ERR! missing script: start”

Leave a Comment