Installing npm on debian stretch

From notes
Author
Created 29 August 2018 03:31:41
Last Modified 29 August 2018 11:56:57
Tags

sudo apt-get update

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-cache show nodejs
sudo apt-get install nodejs=8.11.4-1nodesource1

To also install grunt:

npm install -g grunt-cli