Version 1 (modified by 11 years ago) ( diff ) | ,
---|
Maintaining nodejs
This wiki page documents how we install and maintain nodejs. Currently, an outdated version is packaged in sid. Once a more recent version makes it to backports or stable, we should switch to the Debian package.
Many applications are written as node packaged modules (npm) which all depend on node and on npm (which is a command line package manager for installing node packaged modules).
Therefore, on any given server, we should provide both node and npm to all users on the system.
However, we should never run npm as root (since it will pull in source code over potentially untrusted sources).
By providing one (hopefully update-to-date) version of npm and node, we allow non-privileged users to install their various applications using npm making them happy and keeping our root owned directories secure.
To install nodejs (which provides both node and npm):
Change into the /usr/local/share directory.
wget the most recent binary release of node.
Untar the package and remove the .tar.gz file, but leave the node directory (with version information in the directory name).
Create symlinks to both node and npm in /usr/local/bin
- To do: we need a mechanism to keep these files update to date