'react-scripts' is not recognized as an internal or external command
See original GitHub issueUpdated to NodeJS v8.0.0 which includes npm v5.0.0 on my Windows 10 machine.
I created a new app as detailed below:
Reproducible Demo
create-react-app my-app107
cd my-app107
npm start
(Compiled successfully!)
npm install bootstrap@v4.0.0-alpha.6
npm WARN gentlyRm not removing C:\wf\my-app107\node_modules\espree\node_modules.bin\acorn.cmd as it wasn’t installed by C:\wf\my-app107\node_modules\espree\node_modules\acorn npm WARN gentlyRm not removing C:\wf\my-app107\node_modules\espree\node_modules.bin\acorn as it wasn’t installed by C:\wf\my-app107\node_modules\espree\node_modules\acorn npm notice created a lockfile as package-lock.json. You should commit this file. added 3 packages and removed 957 packages in 33.996s
npm start
‘react-scripts’ is not recognized as an internal or external command, operable program or batch file. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! my-app107@0.1.0 start:
react-scripts start
npm ERR! Exit status 1
npm ls react-scripts
(react-scripts) invalid error: ENOENT: no such file or directory, open 'C:\wf\my-app107\node_modules\react-scripts\package.json
npm ERR! error in C:\wf\my-app107\node_modules\react-scripts: ENOENT: no such file or directory, open ‘C:\wf\my-app107\node_modules\react-scripts\package.json’ npm ERR! invalid: react-scripts C:\wf\my-app107\node_modules\react-scripts
This is all is left:
Issue Analytics
- State:
- Created 6 years ago
- Comments:20 (7 by maintainers)
Top GitHub Comments
I tried
npm update
. Thenreact-scripts
would get updated. And problem fixed.Hey guys if you are on windows i solved the problem by simply typing "npm install react-scripts -g "
Note from maintainers: this will break other things. Don’t do it.