This is how I fix it
- Check and Update the path variable (See below on how to update the path variable)
- Delete node_modules and package-lock.json
- run
npm install
- run
npm run start
if this didn't work, try to install the nodejs and run repair
or clean npm cache npm cache clean --force
To update the path variable
- press windows key
- Search for
Edit the system environmental variable
- Click on
Environment Variables...
- on System variable bottom section ( there will be two section )
- Select
Path
variable name
- Click
Edit..
- Check if there is
C:\Program Files\nodejs
on the list, if not add this