Skip to content

Create-react-app: command not found #962

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
thomasjoshi opened this issue Oct 25, 2016 · 3 comments
Closed

Create-react-app: command not found #962

thomasjoshi opened this issue Oct 25, 2016 · 3 comments

Comments

@thomasjoshi
Copy link

I have done npm install -g create-react-app. I get the following output
/Users/tomjoshi/.npm-packages/bin/create-react-app -> /Users/tomjoshi/.npm-packages/lib/node_modules/create-react-app/index.js
create-react-app@0.6.0 /Users/tomjoshi/.npm-packages/lib/node_modules/create-react-app
├── semver@5.3.0
├── minimist@1.2.0
├── path-exists@2.1.0 (pinkie-promise@2.0.1)
├── chalk@1.1.3 (ansi-styles@2.2.1, supports-color@2.0.0, escape-string-regexp@1.0.5, strip-ansi@3.0.1, has-ansi@2.0.0)
└── cross-spawn@4.0.2 (lru-cache@4.0.1, which@1.2.11)

Then I run create-react-app hello-world but I get create-react-app: command not found. How do I fix this? I have the latest version of node and npm.

@gaearon
Copy link
Contributor

gaearon commented Oct 26, 2016

Can you install any other global Node commands, e.g. npm i -g gulp and then run gulp?
If not, it's likely an issue with the relevant directory not being in your shell's PATH.

@gaearon
Copy link
Contributor

gaearon commented Nov 20, 2016

Closing as this is a problem with your npm setup, and unfortunately there's nothing we can do to help you with it. When you fix it, Create React App will also work.

@gaearon gaearon closed this as completed Nov 20, 2016
@connelevalsam
Copy link

http://stackoverflow.com/a/42611391/4617869 maybe after getting the path try restarting.

@lock lock bot locked and limited conversation to collaborators Jan 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants