ubuntu_install_nodejs.sh 347 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
#!/bin/bash

set -e
set -u
set -o pipefail

apt-get update
apt-get install -y curl

# The node install script fetched and executed here will update the
# apt source list, hence the second apt-get update is necessary.
12
curl -s -S -L https://deb.nodesource.com/setup_6.x | bash -
13 14 15
apt-get update
apt-get install -y nodejs

16
npm install eslint jsdoc ws