-
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
yarn installs incorrect version for typescript, because dist-tag is ignored #2154
Comments
Any plans when this will be fixed ? I have the same issue with the latest typescript version: #2655 |
Are there any workarounds for this? I'm getting 2.3.0 rc installed for |
Any update on this? This is affecting release of things like Angular. An upcoming release was put on npm with the tag |
@StephenFluin Angular should not be affected, because it uses a suffix like Only repos using normal semver versions and tag these as For Example:
// npm info @angular-core
{
"dist-tags": {
"rc": "4.1.0-rc.0",
"latest": "4.0.0"
},
"versions": [
"4.0.0",
"4.1.0-rc.0"
]
} yarn add angular-core # installs 4.0.0
// npm info typescript
{
"dist-tags": {
"rc": "2.4.0",
"latest": "2.3.0"
},
"versions": [
"2.3.0",
"2.4.0"
]
} yarn add typescript # installs 2.4.0, and its wrong - should be 2.3.0 |
I just got bit by this today. Is Yarn by design ignoring dist-tags? Or is this a bug to be fixed? |
Having the same issue. Installs |
Do you want to request a feature or report a bug?
bug
What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce.
You have an empty
package.json
:You run
$ yarn add typescript
:You now have this
package.json
:And this
yarn.lock
:Now remove the
yarn.lock
and run$ yarn install
.Now
typescript@2.1.1
was installed which is wrong. The latest version of Typescript is2.0.10
which was installed in the first run.2.1.1
is released with an@rc
dist-tag.What is the expected behavior?
Install
typescript@2.0.10
again.Please mention your node.js, yarn and operating system version.
The text was updated successfully, but these errors were encountered: