NPM Not working

Hi all,

When using npm start I’m getting the following error:

Maxs-MacBook:my-app max$ npm start
npm ERR! missing script: start

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/max/.npm/_logs/2020-06-29T22_56_41_898Z-debug.log
Maxs-MacBook:my-app max$

How do I fix this?

This type of error generally occurs if you have not mentioned anything as your “start” script in your package.json file. You can declare a start script as follows:


Change the value of “start” script value to your desired app launching command. For example "start": "react-scripts start" will declare the start key of the package.json object be the start command of a react app created using create-react-app . And then punch npm start in your command line.

If it still doesn’t work, you can create a GitHub issue and share the link to the same or simply put up the code here.