This is an old revision of the document!
Node.js Installation
As always, we'll start from a Debian template.
We'll refer to this article, stating it's the best way to install Node.js !
Install NVM (Node Version Manager)
Check the NVM GitHub repo for the latest version of the script.
> wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash => Downloading nvm as script to '/root/.nvm' => Appending nvm source string to /root/.bashrc => Appending bash_completion source string to /root/.bashrc => Close and reopen your terminal to start using nvm or run the following to use it now: export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion