Install node.js / npm / less on Ubuntu with Plesk

Note: If you need LESS just for Drupal, see Install the LESS CSS Preprocessor for Drupal.

Some posts, like Ubuntu installation directions for fresh web-server recommend something like

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install nodejs
sudo ln -s /usr/bin/nodejs /usr/bin/node
sudo apt-get install npm
sudo npm install -g less
node –v
npm -v

Subscribe to RSS - node.js