. Advertisement .
..3..
. Advertisement .
..4..
npm ERR! missing script: start is an error message that restrain users from installing some software. In this article, we will demonstrate you how to settle this trouble. Let’s explore the tips as bellows.
When did this error “npm ERR! missing script: start” appear?
"npm ERR! missing script: start"
You may get the trouble with the warning message when you tried to run npm start. Furthermore, updating new version on the terminal would be a caused that you suffer from the inconvenience concerns
npm ERR! missing script: start
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>npm ERR!
How to fix the error ?
If you are getting the above error, it may be because you are leaving 2 “script” keywords in the ackage.json file. Also, if you are using an unstable version of npm, this can also cause the above error. Here are some methods for you.
1. Add start script in your package.json
Check in the package.json file, if it’s not already there, add the following:
"scripts": { "start": "node your-script.js" }
2. Check for start script in pacakage.json
In some case, you used “script” twice and the error occur. Review the function if it is
3. Run this Command
npm rm -g create-react-app
npm install -g create-react-app
npx create-react-app my-app
4. Run node your-script.js directly
Installing node your script
5. Use this code
{
"name": "csvjson",
"version": "1.0.0",
"description": "upload csv to json and insert it into MongoDB for a single colletion",
"scripts": {
"start": "node csvjson.js"
},
"dependencies": {
"csvjson": "^4.3.4",
"fs": "^0.0.1-security",
"mongodb": "^2.2.31"
},
"devDependencies": {},
"repository": {
"type": "git",
"url": "git+https://github.com/giturl.git"
},
"keywords": [
"csv",
"json",
"mongodb",
"nodejs",
"collection",
"import",
"export"
],
"author": "karthikeyan.a",
"license": "ISC",
"bugs": {
"url": "https://github.com/homepage/issues"
},
"homepage": "https://github.com/homepage#readme"
}
In Conclusion
What amazing solutions!, that you always deal with your system. In reality, take note some key points above for your reference if you don’t prefer it appearing around you. We expect that our clear suggestions for settling the error npm ERR! missing script: start let you understand shortly. On the other hand, you have any concerns, please kindly contribute in the below comment box.
👇️ Read more: How to Fix The Error of NPM Start Not Working? A Complete Guide
Leave a comment