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

lts no longer works as a version #126

Closed
goodevilgenius opened this issue Oct 24, 2023 · 4 comments
Closed

lts no longer works as a version #126

goodevilgenius opened this issue Oct 24, 2023 · 4 comments

Comments

@goodevilgenius
Copy link

If I try nave use lts <command>, instead of running the command in the lts version, it prints out:

What version of node?
lts, lts/, latest, x.y, or x.y.z >

I then type lts, and it prints:

Invalid version specifier
failed to create lts env

nave install lts results in:

Must supply a version ('lts', 'stable', 'latest' or numeric)

nave install stable has similar results, however nave install latest works.

I'm using the current version of nave on main, although I first noticed the issue on a much older version.

@isaacs

This comment was marked as outdated.

@richardlau
Copy link

@isaacs AFAIK Node.js never implement a link for https://nodejs.org/dist/lts -- I remember you asked for something akin to it once in nodejs/node#11173.
I checked with http://web.archive.org/ and it has no cached versions of https://nodejs.org/dist/lts (but does for e.g. https://nodejs.org/dist/ where you can see no lts subdirectory in the cached results).

@isaacs
Copy link
Owner

isaacs commented Oct 26, 2023

I was mistaken! lol

This seems to be working actually?

$ nave use lts node -v
v20.9.0

@goodevilgenius It could be that the cache is incorrect. It only fetches the version listing once per day at most, so it could be that it happened to fetch while the links were moving around? See if this fixes things:

nave cache ls | grep index.html | xargs rm
nave use lts

@goodevilgenius
Copy link
Author

@isaacs Yeah, I checked again, and it was only happening on one computer. Others were fine.

nave cache ls | grep index.html | xargs rm didn't fix it, though. However, rm -rf ~/.nave/cache/* did fix it.

@isaacs isaacs closed this as completed Oct 27, 2023
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

No branches or pull requests

3 participants