distributions
distributions copied to clipboard
[Deb] Provide a node_x repo, that always points to the latest version
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.
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.
Duplicate of #1796
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