question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'react-scripts' is not recognized as an internal or external command

See original GitHub issue

Updated 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: screenshot_7

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:20 (7 by maintainers)

github_iconTop GitHub Comments

13reactions
qianch3ncommented, Oct 6, 2017

I tried npm update. Then react-scripts would get updated. And problem fixed.

5reactions
JosephMelicommented, Jun 26, 2017

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

'react-scripts' is not recognized as an internal or external ...
To update the path variable · press windows key · Search for Edit the system environmental variable · Click on Environment Variables... ·...
Read more >
'react-scripts' is not recognized as an internal or external ...
To solve the error "react-scripts is not recognized as an internal or external command, operable program or batch file", open your terminal in...
Read more >
Fixing 'react-scripts' is not recognized error - Nathan Sebhastian
'react-scripts' is not recognized as an internal or external command, operable program or batch file. Or just simply: react-scripts: command ...
Read more >
Fix react scripts is not recognized as an internal or ... - YouTube
This video shows, how to fix below issuereact- scripts is not recognized as an internal or external command,commandnpm i -g react - scripts....
Read more >
[Fix] 'react-scripts' is not recognized as an internal or external ...
Steps to fix 'react-scripts' is not recognized as an internal or external command: · Step 1: Install “react-script” · Step 2: Execute audit...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found