Node.js¶
Introduction¶
Node.js is a JavaScript runtime, commonly used to build servers and command line tools. We provide the node, npm and npx commands, so you can build, run, and install Node.js applications.
Warning:
Node.js applications belong in your home directory, not in your document root.
Versions¶
At the moment we only provide one version of Node.js: v26.4.0.
Connection to webserver¶
In order to make your application accessable from the outside, you need to connect it to the webserver, using a web backend.
Please note that your application must listen on the IP 0.0.0.0. You can choose any port between 1024 and 65535.
npm¶
npm is Node.js' package manager, used to install and manage additional packages.
Use it as usual inside a project to manage that project's dependencies:
[isabell@moondust ~]$ cd my-project
[isabell@moondust my-project]$ npm install express
You can also install command line tools globally:
[isabell@moondust ~]$ npm install -g cowsay
The resulting command (cowsay in this example) is installed to ~/.local/bin, which is already on your $PATH.