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.

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

See original GitHub issue

Is this a bug report?

No

Can you also reproduce the problem with npm 4.x?

yes

Which terms did you search for in User Guide?

create-react-app

Environment

  1. node -v: v8.9.3
  2. npm -v:4.6.1
  3. yarn --version (if you use Yarn):
  4. npm ls react-scripts (if you haven’t ejected): C:\Users\chacker\my-react-app>npm ls react-scripts my-react-app@1.0.0 C:\Users\chacker\my-react-app `-- (empty)

Then, specify:

  1. Operating system: windows 7
  2. Browser and version (if relevant):

Steps to Reproduce

(Write your steps here:)

  1. npm install -g create-react-app log-> C:\Users\chacker\my-react-app>npm install -g create-react-app C:\Users\chacker\AppData\Roaming\npm\create-react-app -> C:\Users\chacker\AppData\R aming\npm\node_modules\create-react-app\index.js C:\Users\chacker\AppData\Roaming\npm `-- create-react-app@1.4.3
  2. create-react-app my-app log-> C:\Users\cusha\my-react-app>create-react-app my-app ‘create-react-app’ is not recognized as an internal or external command, operable program or batch file.

I am not able to start the next step because of these issues. I don’t understand why npm is giving this issue is there any problem with my installation.

Issue Analytics

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

github_iconTop GitHub Comments

30reactions
Timercommented, Dec 13, 2017

You probably don’t have your node modules directory in your path. Does this work with npx?

npx create-react-app my-app
4reactions
vikbicommented, Sep 3, 2018

This is the issue is mainly caused by two reasons:

  1. Path variable issue
  2. Npm version issue (5.6.0 above)

if node version is correct and still getting same issue, try adding following path to environment variable, add correct path from ur system. C:\Users\vchaudhari\AppData\Roaming\npm.

close all command prompt windows and reopen sometimes system restart also requires for windows

Read more comments on GitHub >

github_iconTop Results From Across the Web

'create-react-app' is not recognized as an internal or external ...
1) open Node.js command prompt · 2) Then type "npm install create-react-app -g" (g for global access) command to install create-react-app · 3) ......
Read more >
'create-react-app' is not recognized as an internal or external ...
'create-react-app' is not recognized as an internal or external command # · Open the start search and type in env and then click...
Read more >
'create-react-app' is not recognized as an internal or external ...
Press Win+R and type sysdm. · Click the Advanced tab and click Environment Variables at the bottom · In the bottom section where...
Read more >
'create-react-app' is not recognized as an internal ... - YouTube
' create - react - app' is not recognized as an internal or external command,create-react-app : The term 'create-react-app' is not recognized as ......
Read more >
React - is not recognized as an inter
Actual behavior After downloading MBD-React-Free-npm, opening a command prompt for the directory in which package.json resides, and entering the command "npm ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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