-
-
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
README uses npm commands, but the tool suggests to use yarn #1497
Comments
I believe this is because you have yarn installed globally. If you do not have yarn installed it would tell you to use |
Yup. I added |
There is no difference between how those commands work. The intention was that Yarn users probably know what they're doing (Yarn still being a very new project), and should be familiar with npm anyway (since every library out there has instructions for npm and you can't avoid learning it). Maybe that was a wrong assumption? |
By the way it's a bit unfortunate we're suggesting to run |
I think by default we should show This is less than ideal for the minority of users who have both Yarn and that YARN Java package installed. We could assume that they'll find out how to use the |
We could compare |
@Timer That's an interesting idea! They output will be different however, on my system they return That gave me an idea though: maybe we could compare the output of |
I think calling [ $(yarn --version) == $(yarnpkg --version) ] && echo "yarn" || echo "yarnpkg" We could have different checks for each OS? |
Actually, I'd even argue we stop suggesting |
Is it still slow with the hoisting workaround? I think a lot of slowness is due to duplicate dependencies and the linking phase. |
I haven't tried it super recently but the linking stage just takes 200+ seconds, even longer when coupled with anti-virus. |
I'm fairly sure this is at least partially alleviated by #1441. |
Why not just use npm for the list of commands, and detect if the user installed yarn they can use that instead of npm? Something like
|
We already changed this in README so I think it's good to close. |
This is the first time I've used
create-react-app
, which was pretty smooth and gave me the following message on the cli:However, when you browse the
README.md
file, all references are fornpm
, such asnpm start
,npm test
, etc.The text was updated successfully, but these errors were encountered: