-
-
Notifications
You must be signed in to change notification settings - Fork 744
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
Can n better determine the latest version of node when upstream downloads don't exist? #824
Comments
Same issue here:
|
This may have been fixed already on the node side. Node.js just switched over to a new distribution method (using CloudFlare) within the last couple of weeks, and this might have been a teething problem with the new setup. My usual expectation is that index.tab is the source of truth for what is available. Thanks for node issue link. I have subscribed there to follow developments. |
For historical interest, switched from web page scraping to using |
This was a transient problem due to a (hopefully) one-off problem with the new Node.js CDN and release process. In general, One general-purpose idea I had was adding an option for a cool-down period to skip over recent releases. I don't think there is a common enough problem with a good enough solution to act on for this issue. |
Problem
Node.js made some kind of mistake and published 18.20.5 without actually building the release files in the expected directory. See nodejs/node#55829. Any CI pipeline or tooling that uses
n
to download the latest 18.x version fails because of this. e.g.:Obivously this isn't an issue with
n
per-se ... but I'm wondering if there is something that could be done on then
side to not have errors like this affect users. I notice, for example, thathttps://nodejs.org/dist/latest-v18.x/
redirects/links tohttps://nodejs.org/dist/v18.20.4/
, so maybe the way thatn
determines the latest version could be adjusted somehow?Thanks!
Short Version
Is there a way to change
n
so that upstream issues like missing download files don't break users' pipelines?Configuration Details
$ n --version v9.2.3 $ command -v node /Users/cmv/.n/bin/node $ node -p process.platform darwin
The text was updated successfully, but these errors were encountered: