-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Setup instructions result in "create-react-app: command not found" #138
Comments
Can you try running |
I’ll close because there is not enough information to help you. |
$ npm install -g create-react-app |
@3nki Are you able to call any other global Node utilities (e.g. try |
aha! yup, that seems to have fixed it – thnx! |
Hi! I have the same issue. I've added |
You need to figure out where global modules get installed. For example if you don't have |
In case ls ~/.config/yarn/global/node_modules/.bin |
figure out where $PATH is then export it in your .bashrc file and call it in your .profile file like this |
I solved the problem by adding C:\Users\ugur\AppData\Roaming\npm to windows PATH variable. |
|
For others who are still having an issue and the above solutions haven't work, take a look at this. Happy coding. |
Thanks @vandoan, that worked for me. Although I'd tried : |
hey, I had also same problem so I fixed it by reinstalling nodejs of v6.11.3 hope it will helpful for you guys. :) |
@Luckygoodboy It seems that reinstalling NodeJS (in Windows, at least) adds Node and NPM modules into the PATH environment variables, which is probably what solved the problem behind the scenes for you: |
For windows 10, add C:\Users{your username}\AppData\Roaming\npm to system path solve this problem. |
thanks vandoan...your fix worked out for me. |
try with the command , sudo npm install -g create-react-app , and then create-react-app mywebapp without capital letters, if this don´t work whit the command nano /etc/paths |
Thanks @vandoan It worked for me |
|
@JGallardo |
If someone still has similar issues running worked for me on OSX High Sierra, node 9.7.1 and npm 5.6.0 |
I'm new to ReactJS. I 'm want to install reactjs on my Mac. But I don't know how and what to install? Thanks in advance. |
@Web-Ghostrider25 Install the LTS version of NodeJS from https://nodejs.org/en/ and follow the instructions on the readme to get started. It works for all platfroms. You can check that everything is installed correctly by checking |
Thanks. I used the ReactJS setup on TutorialsPoint. But I can't see the output on localhost:8080?
I setup 8080 as my port in web. Config file
…Sent from my iPhone
On Mar 19, 2018, at 11:49 AM, Bond ***@***.***> wrote:
@Web-Ghostrider25 Install the LTS version of NodeJS from https://nodejs.org/en/ and follow the instructions on the readme to get started. It works for all platfroms.
You can check that everything is installed correctly by checking node -v, npm -v, npx -v.
react -v is not going to return anything.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Did you found any solution for this? |
Try npx create-react-app appname. There should be some path error. Mine's was solved with this. |
I had the same problem, npx create-react-app worked for me too. |
i met this problem too, i used yarn instead. i recommend to use yarn. |
Following the simple setup instructions yields:
-bash: create-react-app: command not found
mac os x 10.11.5, node 6.2, npm 3.8.9
The text was updated successfully, but these errors were encountered: