Node support for apt #53856
-
Hi, I wanted to download node for my ubuntu server, but currently only external package managers ( |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 8 replies
-
Node.js doesn't offer an official apt package for installation. However, external organizations like NodeSource provide such packages. There's also an apt package named For official installation methods, visit the Node.js download page. I'm not sure who to ping to see if this will ever be added in the future, but I've asked on the OpenJSF slack. I've also marked this as the answer, but if new information that outdates this, I'll undo that. |
Beta Was this translation helpful? Give feedback.
-
We do list nvm and fnm even though it's not an official installation method and is not maintained by us. So it might make sense to list an apt option as well. That can be discussed in nodejs/nodejs.org repo. Regarding creating a |
Beta Was this translation helpful? Give feedback.
-
I also see this as outside the scope of the project. There are many different linux distros and I think it's up to those ecosystems to create/package Node.js (for example this is an rpm for Fedora/RHEL etc.) In the past other groups (like NodeSource) had also created packages outside the scope of the project. So there may be a way to get Node.js through apt but not from the binaries produced by the project. It's also worth noting that you can manuallyl install the linux binaries provided by the project as they should run most distros including recent ubuntu versions. |
Beta Was this translation helpful? Give feedback.
-
Hi @TracerDS, it is possible but it will take a few steps:
Download Node.js Source:
Build Node.js from source.
Install Node.js into a directory which will be used to create the .deb package.
Create the necessary files for the .deb package.
|
Beta Was this translation helpful? Give feedback.
Hi @TracerDS, it is possible but it will take a few steps:
Download Node.js Source:
Get the source code for the version of Node.js you want to package.
Build Node.js from source.
Install Node.js into a directory which will be used to create the .deb package.
Create the necessary files for the .deb package.