Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
yarn global add create-react-app doesn’t work with nvm #1118
At the request of @gaearon:
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
It would be great if yarn and CRA went together like chocolate and peanut butter.
Works for me:
Can you specify more details?
I installed yarn using npm. How did you install yarn? I installed node using nvm. I'm using node 4.5.…
On Wed, 30 Nov 2016 at 23:24 Dan Abramov ***@***.***> wrote: Works for me: ***@***.*** ~> yarn global add create-react-app Using globally installed version of Yarn yarn global v0.17.8 warning No license field [1/4]
I was able to repro this...
Switched to node 4 via nvm,
@stevensacks this at all similar to your situation? If you do a global remove, then global add, does it work?
Likely related to yarnpkg/yarn#1151 (comment)?
Installing via brew is strongly recommended against.…
On Thu, 1 Dec 2016 at 9:34 Dan Minshew ***@***.***> wrote: perhaps try installing with brew, as per this guide <https://yarnpkg.com/en/docs/install>? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#1118 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAJ5zLQXAHhoJusgEDzhc1EqboLcNXccks5rDhYMgaJpZM4K_zbg> .
Hi, so this looks like a chain of crappy bugs cluster-munging together... For me I think it's the result of using NVM and Yarn together which might be confusing Yarn a little.
I deleted my yarn (I'm on Ubuntu on this laptop) and reinstalled using "don't give me extra things"
Then found that
Yarn may not fix this for NVM anytime soon but this NPM utility shortcuts the manual file linking:
(not my tool, just just found it looking around)
I then tested location using