Skip to content
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

Fix n lts incorrect version #512

Merged
merged 1 commit into from Apr 5, 2019
Merged

Fix n lts incorrect version #512

merged 1 commit into from Apr 5, 2019

Conversation

wmzy
Copy link
Contributor

@wmzy wmzy commented Jun 26, 2018

I could not install latest LTS version with n lts command:

$ n --lts
8.10.0

With this patch:

$ n --lts
8.11.3

I just sort and tail like display_latest_version and display_latest_stable_version.

@shadowspawn
Copy link
Collaborator

shadowspawn commented Jun 30, 2018

Are you using a custom node mirror?

(I think this fix is for the case when the mirror has more than one version in its "latest" folder, which is not normally the case for the default mirror. Older similar PR in #360 )

@wmzy
Copy link
Contributor Author

wmzy commented Jul 2, 2018

Yes, I'm using the taobao mirror.

Copy link
Collaborator

@shadowspawn shadowspawn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. (I am not a maintainer.)

Before:
$ n --lts
8.11.3
$ NODE_MIRROR=https://npm.taobao.org/mirrors/node n --lts
8.10.0

After:
$ n --lts
8.11.3
$ NODE_MIRROR=https://npm.taobao.org/mirrors/node n --lts
8.11.3

@shadowspawn shadowspawn self-assigned this Mar 25, 2019
@shadowspawn
Copy link
Collaborator

Merged to develop for next release.

@shadowspawn shadowspawn merged commit 9f5a36a into tj:master Apr 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants