#!/bin/sh
# Install software for web development.

snap install node --classic --channel=11
npm install -g bower
npm install -g yo
npm install -g grunt-cli

#Use gem to install jekyll, because the debian package is outdated.
apt-get -y update
apt-get install ruby1.9.1-dev
gem install jekyll

#!/bin/sh
# Install software for web development.

apt-get -y update
apt-get -y install npm
ln -s /usr/bin/nodejs /usr/bin/node
npm install -g bower
npm install -g yo
npm install -g grunt-cli

#Use gem to install jekyll, because the debian package is outdated.
apt-get install ruby1.9.1-dev
gem install jekyll

--- 
+++ 
@@ -1,13 +1,12 @@
 #!/bin/sh
 # Install software for web development.
 
-apt-get -y update
-apt-get -y install npm
-ln -s /usr/bin/nodejs /usr/bin/node
+snap install node --classic --channel=11
 npm install -g bower
 npm install -g yo
 npm install -g grunt-cli
 
 #Use gem to install jekyll, because the debian package is outdated.
+apt-get -y update
 apt-get install ruby1.9.1-dev
 gem install jekyll
Install node.js as a Snap package

It's easier then using a debian package.
