I'm unable to use the command npm run start
. The error the console returns is:
> @ start C:\Users\Aristophanes
> cd packages/react-scripts && node bin/react-scripts.js start
bash: line 0: cd: packages/react-scripts: No such file or directory
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ start: `cd packages/react-scripts && node bin/react-scripts.js start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
So if I'm correct the console is telling me there's no packages/react-scripts
directory and no bin/react-scripts.js
file.
I'm a bit confused. The only packages/react-scripts
directory I can find on my computer is C:\Users\Aristophanes\create-react-app-next\packages\react-scripts
.
And the bin/react-scripts.js
file I have is located at C:\Users\Aristophanes\node_modules\react-scripts\bin\react-scripts.js
Does anyone have any ideas how I can fix this? As suggested by Mukyuu I tried running npm start
in the directory C:\Users\Aristophanes\create-react-app-next\packages\react-scripts
. This leads to the console error npm ERR! missing script: start
. I have added "start": "node server.js"
to the scripts section of my NPM package.json
file and restarted cmd, but I still get the same missing script: start error in the console.