-
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
Your current version of Yarn is out of date "npm upgrade --global yarn" should be "npm install --global yarn" #3042
Comments
I'm closing this because it must be an npm bug. The command posted should be what npm documentation suggests. |
There's a bit of a discussion on this on #1139 that ties into other issues.
Curious as to why there is a prompt for |
|
+1 for changing the help text to Though this indeed is technically an npm bug, the relevant GitHub issue ( npm/npm#11534 ) has fallen victim to their new auto-close policy. Even if this was sneakily fixed at some point anyway, yarn users are now dependent on npm being up to date in order to ensure yarn's suggestion works, which is a weird pseudo-dependency. In an ideal world, this would be fixed npm-side and the point would be moot, but I'd rather see yarn give consistently helpful documentation rather than rely on behavior of the tool it's meant to replace. |
Is there a particular reason by the way why we can't use yarn to upgrade yarn? |
I've installed yarn with brew now (OS X). Then it is available with any version of node I have active (I use nvm). Otherwise you have to install yarn in each node version global.
|
I use n instead of nvm and never have had to reinstall it globally for a
new version of Node (OS X too).
…On Tue, Jun 27, 2017, 21:13 Chris Sattinger ***@***.***> wrote:
I've installed yarn with brew now (OS X). Then it is available with any
version of node I have active (I use nvm). Otherwise you have to install
yarn in each node version global.
brew upgrade yarn
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3042 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAd8QgK_Wz1jQpWoCIYD1LjoDKd0ipojks5sIMe6gaJpZM4MzyBN>
.
|
I too faced the same warning. |
I encountered the same thing today, but the command is quite different :
The command doesn't work either, unfortunately. |
I noticed that too. Really don't know what's wrong with npm i -g yarn
…On Thu, Sep 21, 2017, 12:14 Birkhoff Lee ***@***.***> wrote:
I encountered the same thing today, but the command is quite different :
warning Your current version of Yarn is out of date. The latest version is "1.0.2" while you're on "0.19.1".
info To upgrade, run the following command:
$ curl -o- -L https://yarnpkg.com/install.sh | bash
The command doesn't work either, unfortunately.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3042 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAd8Qv2wDTxmBS37d7cfuKageRDEy6eOks5skapUgaJpZM4MzyBN>
.
|
@BirkhoffLee that should work actually. What's the error you are getting? |
**Summary** Fixes #3042. **Test plan** Manual verification.
Didn’t get any error or warnings. Everything looks fine but it just don’t work.
…On Sep 21, 2017, 9:14 PM +0800, Burak Yiğit Kaya ***@***.***>, wrote:
@BirkhoffLee that should work actually. What's the error you are getting?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@BirkhoffLee The command displayed changes depending on how you've installed Yarn, so a different command isn't unusual. |
**Summary** Fixes #3042. **Test plan** Manual verification.
**Summary** Fixes yarnpkg#3042. **Test plan** Manual verification.
On Mac |
Not sure if this will help anyone? I'm on macOS. |
When I did run
So I fixed it for:
Now my installed yarn version is updated |
What helped me was:
😎 |
|
For those with Homebrew: |
It's nice and all that there are so many workarounds for Mac users but... surely, I'm not the only Windows user? curl doesn't exactly do anything there... What's the problem with |
I can't update yarn by When I run the above it says 1.6.0 installed, however if i then run I can't remember how I installed yarn to begin with. (windows) ** UPDATE ** i had used choco, so |
|
This worked like a charm, cheers man! |
Somebody needs to publish 1.15.2 to npm. https://www.npmjs.com/package/yarn It's showing 1.13.0 while stable on http://yarnpkg.com is 1.15.2 |
Just an FYI for anyone else running into this issue. It ended up I had apparently installed Yarn through a windows installer. It was finding this one first. I uninstalled it windows via Programs and Features and it then picked up the new one. |
Current yarn: 0.19.1
bug
What is the current behavior?
The "yarn is out of date" message posts an npm command. This command doesn't succeed in updating yarn.
But this command doesn't do it. yarn remains at 0.19.1
If the current behavior is a bug, please provide the steps to reproduce.
The npm command that works is install:
Now I know this sounds like an npm bug, certainly not a yarn bug.
According to npm docs it should be upgrade.
What is the expected behavior?
This:
yarn/src/cli/commands/install.js
Line 93 in 24199a0
should say:
But honestly I'm not sure.
Please mention your node.js, yarn and operating system version.
Node 6.9.1
npm 3.10.8
OS X el capitain
The text was updated successfully, but these errors were encountered: