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

[Deb] Provide a node_x repo, that always points to the latest version #1829

Open
Congelli501 opened this issue Oct 19, 2024 · 3 comments
Open
Assignees
Labels

Comments

@Congelli501
Copy link

Congelli501 commented Oct 19, 2024

Describe your feature request
This is a feature request.
It would be nice to have a deb registry that always points to the latest major version of nodejs, to auto-upgrade to the latest version.

Distribution Information:

  • OS: Ubuntu
  • Version : 24.10

Node Version:

  • Node: 23

To Reproduce
Version 23.x of NodeJS is now available, I won't get the update without changing the registry URL in /etc/apt/sources.list.d/nodesource.list.

Expected behavior
The current script & available repos are tied to a specific NodeJS version.
On my dev machines, I like to always use the latest version to try out new features & test newer versions for regressions.
The current model requires to change the registry URL on each new major release, on each dev machines.

A repo pointing to the latest release would be nice to have.

@JesusPaz
Copy link
Contributor

Hello @Congelli501,

Thank you for reaching out. At the moment, we do not have plans to create a separate repository to support multiple versions concurrently, as our repositories are designed to host a single version per release. However, we can provide a script that automatically configures the repository to always point to the latest version of Node.js.

You can find more details and access the script here: Using Debian as root - Node.js Current.

If you have any other questions or need further assistance, feel free to let us know.

@JesusPaz JesusPaz added request and removed bug labels Oct 22, 2024
@JesusPaz JesusPaz self-assigned this Oct 22, 2024
@ferferga
Copy link
Contributor

Duplicate of #1796

@Congelli501
Copy link
Author

Congelli501 commented Nov 5, 2024

Thanks for your response @JesusPaz .

That's interesting for docker builds / install scripts that runs regularly, but for dev machines, it still requires to manually run the _current script to get the repo up-to-date.

Moreover, I prefer to bypass the script and just write the nodesource.list file.
This is faster that the provided install script and we prefer to limit execution of downloaded shell scripts if possible.

curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
echo 'deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_23.x nodistro main' > /etc/apt/sources.list.d/nodesource.list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants