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.
Contents
How to Fix npm ERR! missing script: start Error?
- 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 yourpackage.json
. And you can easily solve your error."scripts": { "start": "node your-script.js" }
- npm ERR! missing script: start
To Fix npm ERR! missing script: start Error just Run
. You can solve this error by just running the following codenode your-script.js
directlynode 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
node your-script.js
directlyYou can solve this error by just running the following code
node your-script.js
directly
Solution 2 : Run the following commands
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
- Access to XMLHttpRequest has been blocked by CORS policy Redirect is not allowed for a preflight request only one route
- For your account security logging into Facebook from an embedded browser is disabled.
- FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed – JavaScript heap out of memory in ionic 3
- ImportError: cannot import name ‘json’ from ‘itsdangerous’
- Root composer.json requires php ^7.3 but your php version (8.0.0) does not satisfy that requirement in laravel
Your article helped me a lot. Thank you.