-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Command not found create-react-app on ubuntu #5156
Comments
Please can you show me the out of this commands ls .config/yarn/global/node_modules/.bin
./.config/yarn/global/node_modules/.bin/create-react-app
ls .yarn/global/node_modules/.bin
./.yarn/global/node_modules/.bin/create-react-app |
When I try to execute this command But on this command |
Add |
|
I also tried to add the path of |
How is your shell? |
Send me the output of |
yarn global add create-react-app which create-react-app When I tried to install using |
https://stackoverflow.com/questions/11530090/adding-a-new-entry-to-the-path-variable-in-zsh vim ~/.zshrc export PATH=~/.yarn/bin:$PATH
|
|
Thanks for the help but I already add the the path of |
Then your not have your yarn directory in the path, when your will have the full path to create react app, I help you. Example: |
hi @jefer94 , Im sorry I dont understand. Would you elaborate for me your last comment? |
Yes dude. |
If you read carefully then you will see after installing Yarn it tells you to add the following thing in your path. export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
|
It works for me! Thank you a lot! |
Version of yarn
v1.3.2
Do you want to request a feature or report a bug?
bug
What is the current behavior?
creact-react-app command not found
If the current behavior is a bug, please provide the steps to reproduce.
yarn global add create-react-app
yarn global v1.3.2
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed "create-react-app@1.4.3" with binaries:
- create-react-app
Done in 3.05s.
which create-react-app
create-react-app command not found
Try to add the yarn global bin path to my global path. It is also not working.
My global path - export PATH=$PATH:~/.yarn/bin
Try to check if the create-react-app is included on the the yarn global dir. It is included.
But when I checked the bin folder, the create-react-app script is not exist. Other scripts are exist.
What is the expected behavior?
create-react-app should work.
Please mention your node.js, yarn and operating system version.
node - v9.3.0
yarn - v1.3.2
ubuntu - 16.04
shell - zsh
The text was updated successfully, but these errors were encountered: