Skip to content

Node

Install Node

curl -fsSL https://deb.nodesource.com/setup_current.x | sudo -E bash -
sudo apt-get install -y nodejs

check it

node -v
npm -v

configure

mkdir ~/.node
npm config set prefix ~/.node

Add the node binaries to PATH by putting the following content into ~/.profile

export PATH=~/.node/bin:$PATH

and then update the environment

source ~/.profile