yarn global add create-react-app doesn’t work with nvm
See original GitHub issueAt the request of @gaearon:
https://yarnpkg.com/en/docs/cli/global
The official Yarn documentation states that you can install (and maintain) your create-react-app project with yarn. However, it doesn’t actually work. Calling create-react-app
after a global yarn install does nothing. CRA currently only works from a global npm install.
It would be great if yarn and CRA went together like chocolate and peanut butter.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:3
- Comments:12 (6 by maintainers)
Top Results From Across the Web
create-react-app is not working since version 4.0.1
I upgraded to the latest stable node version 15.3.0 via nvm. nvm install node. Then I installed create-react-app again (no global flag). npm ......
Read more >Dev > Linux > Create-React-App. {NVM, Node, NPM ... - Medium
Yarn will often not detect NVM global directories when different versions of node are installed. Ensure NPM and Yarn are using the same ......
Read more >What To Do if create-react-app Doesn't Work
1. npm uninstall -g create-react-app. This is the npm command to uninstall your global installation of create-react-app . · 2. yarn global remove ......
Read more >Working with Yarn Global Commands | by Keerti Kotaru
This article details using Yarn to install tools or packages at the global level. With Yarn, all global commands need to start with...
Read more >Getting Started - Create React App
If you've previously installed create-react-app globally via npm install ... -g create-react-app or yarn global remove create-react-app to ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This solved it for me (on Ubuntu 16.04)
export PATH=$PATH:~/.yarn/bin
Works for me:
Can you specify more details?