Re Explosion Pills “An installation can run arbitrary scripts and running it with sudo can be extremely dangerous!”
Seems like using sudo is the wrong way of doing it.
“Change the owner of the files in your /usr/local folder to the current user:”
sudo chown -R $USER /usr/local
Then run the install
node install -g less
Check out: