Documentation

How To Node.js

We do not offer Node.js by default because we can't give you the most recent release. But you can use nvm (Node Version Manager) which installs the required version for you.

Installing nvm

You can install nvm without root in your home directory.

  • Ssh to ssh2.ulyssis.org or ssh2.ulyssis.org
  • Run the following command:
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash

The script clones the nvm repository to ~/.nvm and adds the source line to your profile (~/.bash_profile, ~/.zshrc, ~/.profile, or ~/.bashrc).

  • Close your terminal and reconnect to the server.

To verify that nvm has been installed, do:

command -v nvm

which should output 'nvm' if the installation was successful.

Nvm should now be installed and you can begin to install node.

Installing node

To install the latest version:

nvm install node

To install any specific version, do:

nvm install 6.14.4

Node should now be installed. To verify run:

npm --version

Which should output something like '6.4.1'.

If it doesn't work try to run:

nvm use node

Which should output: 'Now using node v11.4.0 (npm v6.4.1)'


Note: If you're using zsh don't forget to add the following lines to your .zshrc:

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm