nodejs
this repository contains all the required tools and configurations to setup nodejs for different machines for ubuntu docker container running on MAC, try this:
https://deb.nodesource.com/setup_8.x | sudo -E bash -
curl -sLLog details
Installing the NodeSource Node.js v8.x repo...
Populating apt-get cache...
- apt-get update
Get:1 http://security.ubuntu.com trusty-security InRelease [65.9 kB]
Ign http://archive.ubuntu.com trusty InRelease
Get:2 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB] Hit http://archive.ubuntu.com trusty-backports InRelease
Hit https://deb.nodesource.com trusty InRelease Hit http://archive.ubuntu.com trusty Release.gpg Hit http://archive.ubuntu.com trusty Release
Get:3 http://security.ubuntu.com trusty-security/universe Sources [75.8 kB] Get:4 http://archive.ubuntu.com trusty-updates/universe Sources [240 kB]
Get:5 http://security.ubuntu.com trusty-security/multiverse Sources [3012 B]
Hit https://deb.nodesource.com trusty/main Sources
Hit https://deb.nodesource.com trusty/main amd64 Packages
Get:6 http://archive.ubuntu.com trusty-updates/multiverse Sources [7617 B]
Get:7 http://security.ubuntu.com trusty-security/main amd64 Packages [828 kB]
Get:8 http://archive.ubuntu.com trusty-updates/main amd64 Packages [1274 kB]
Get:9 http://security.ubuntu.com trusty-security/restricted amd64 Packages [17.8 kB] Get:10 http://security.ubuntu.com trusty-security/universe amd64 Packages [237 kB] Get:11 http://security.ubuntu.com trusty-security/multiverse amd64 Packages [3997 B] Get:12 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [21.1 kB] Get:13 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [550 kB] Get:14 http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages [15.5 kB] Hit http://archive.ubuntu.com trusty-backports/main Sources
Hit http://archive.ubuntu.com trusty-backports/restricted Sources
Hit http://archive.ubuntu.com trusty-backports/universe Sources
Hit http://archive.ubuntu.com trusty-backports/multiverse Sources
Hit http://archive.ubuntu.com trusty-backports/main amd64 Packages
Hit http://archive.ubuntu.com trusty-backports/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty-backports/universe amd64 Packages
Hit http://archive.ubuntu.com trusty-backports/multiverse amd64 Packages
Hit http://archive.ubuntu.com trusty/universe Sources
Hit http://archive.ubuntu.com trusty/multiverse Sources
Hit http://archive.ubuntu.com trusty/main amd64 Packages
Hit http://archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty/universe amd64 Packages
Hit http://archive.ubuntu.com trusty/multiverse amd64 Packages
Fetched 3406 kB in 41s (82.0 kB/s)
Reading package lists... Done
Confirming "trusty" is supported...
- curl -sLf -o /dev/null 'https://deb.nodesource.com/node_8.x/dists/trusty/Release'
Adding the NodeSource signing key to your keyring...
- curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - OK
Creating apt sources list file for the NodeSource Node.js v8.x repo...
- echo 'deb https://deb.nodesource.com/node_8.x trusty main' > /etc/apt/sources.list.d/nodesource.list
- echo 'deb-src https://deb.nodesource.com/node_8.x trusty main' >> /etc/apt/sources.list.d/nodesource.list
apt-get update
for you...
Running - apt-get update
Hit http://security.ubuntu.com trusty-security InRelease
Ign http://archive.ubuntu.com trusty InRelease Hit http://archive.ubuntu.com trusty-updates InRelease Get:1 https://deb.nodesource.com trusty InRelease Hit http://security.ubuntu.com trusty-security/universe Sources
Hit http://archive.ubuntu.com trusty-backports InRelease
Hit http://archive.ubuntu.com trusty Release.gpg
Hit http://security.ubuntu.com trusty-security/multiverse Sources
Hit http://archive.ubuntu.com trusty-updates/universe Sources
Get:2 https://deb.nodesource.com trusty/main Sources
Hit http://security.ubuntu.com trusty-security/main amd64 Packages
Get:3 https://deb.nodesource.com trusty/main amd64 Packages
Hit http://security.ubuntu.com trusty-security/restricted amd64 Packages
Hit http://security.ubuntu.com trusty-security/universe amd64 Packages
Hit http://archive.ubuntu.com trusty-updates/multiverse Sources Hit http://archive.ubuntu.com trusty-updates/main amd64 Packages Hit http://security.ubuntu.com trusty-security/multiverse amd64 Packages Hit http://archive.ubuntu.com trusty-updates/restricted amd64 Packages Hit http://archive.ubuntu.com trusty-updates/universe amd64 Packages
Hit http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages
Hit http://archive.ubuntu.com trusty Release
Hit http://archive.ubuntu.com trusty-backports/main Sources
Hit http://archive.ubuntu.com trusty-backports/restricted Sources
Hit http://archive.ubuntu.com trusty-backports/universe Sources
Hit http://archive.ubuntu.com trusty-backports/multiverse Sources
Hit http://archive.ubuntu.com trusty-backports/main amd64 Packages
Hit http://archive.ubuntu.com trusty-backports/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty-backports/universe amd64 Packages
Hit http://archive.ubuntu.com trusty-backports/multiverse amd64 Packages
Hit http://archive.ubuntu.com trusty/universe Sources
Hit http://archive.ubuntu.com trusty/multiverse Sources
Hit http://archive.ubuntu.com trusty/main amd64 Packages
Hit http://archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty/universe amd64 Packages
Hit http://archive.ubuntu.com trusty/multiverse amd64 Packages
Fetched 6413 B in 16s (394 B/s)
Reading package lists... Done
apt-get install nodejs
(as root) to install Node.js v8.x and npm
Run apt-get install nodejs
Log details
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libpython-stdlib python python-minimal python2.7 python2.7-minimal
Suggested packages:
python-doc python-tk python2.7-doc binfmt-support
The following NEW packages will be installed:
libpython-stdlib nodejs python python-minimal python2.7 python2.7-minimal
0 upgraded, 6 newly installed, 0 to remove and 2 not upgraded.
Need to get 14.3 MB of archives.
After this operation, 63.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python2.7-minimal amd64 2.7.6-8ubuntu0.3 [1187 kB]
Get:2 https://deb.nodesource.com/node_8.x/ trusty/main nodejs amd64 8.5.0-1nodesource1 [12.8 MB]
Get:3 http://archive.ubuntu.com/ubuntu/ trusty/main libpython-stdlib amd64 2.7.5-5ubuntu3 [7012 B]
Get:4 http://archive.ubuntu.com/ubuntu/ trusty/main python-minimal amd64 2.7.5-5ubuntu3 [27.5 kB]
Get:5 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python2.7 amd64 2.7.6-8ubuntu0.3 [197 kB]
Get:6 http://archive.ubuntu.com/ubuntu/ trusty/main python amd64 2.7.5-5ubuntu3 [134 kB]
Fetched 14.3 MB in 2min 42s (87.9 kB/s)
Selecting previously unselected package python2.7-minimal.
(Reading database ... 22458 files and directories currently installed.)
Preparing to unpack .../python2.7-minimal_2.7.6-8ubuntu0.3_amd64.deb ...
Unpacking python2.7-minimal (2.7.6-8ubuntu0.3) ...
Selecting previously unselected package libpython-stdlib:amd64.
Preparing to unpack .../libpython-stdlib_2.7.5-5ubuntu3_amd64.deb ...
Unpacking libpython-stdlib:amd64 (2.7.5-5ubuntu3) ...
Selecting previously unselected package python-minimal.
Preparing to unpack .../python-minimal_2.7.5-5ubuntu3_amd64.deb ...
Unpacking python-minimal (2.7.5-5ubuntu3) ...
Selecting previously unselected package nodejs.
Preparing to unpack .../nodejs_8.5.0-1nodesource1_amd64.deb ...
Unpacking nodejs (8.5.0-1nodesource1) ...
Selecting previously unselected package python2.7.
Preparing to unpack .../python2.7_2.7.6-8ubuntu0.3_amd64.deb ...
Unpacking python2.7 (2.7.6-8ubuntu0.3) ...
Selecting previously unselected package python.
Preparing to unpack .../python_2.7.5-5ubuntu3_amd64.deb ...
Unpacking python (2.7.5-5ubuntu3) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Setting up python2.7-minimal (2.7.6-8ubuntu0.3) ...
Linking and byte-compiling packages for runtime python2.7...
Setting up libpython-stdlib:amd64 (2.7.5-5ubuntu3) ...
Setting up python-minimal (2.7.5-5ubuntu3) ...
Setting up nodejs (8.5.0-1nodesource1) ...
Setting up python2.7 (2.7.6-8ubuntu0.3) ...
Setting up python (2.7.5-5ubuntu3) ...