Tuesday, May 8, 2018

shitty node.js site.

node js has one of the shitties sites. it does not tell a novice on how to install node.js


the below site send me to the correct link


curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install<

/span> -y nodejs

 curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -

## Installing the NodeSource Node.js 8.x LTS Carbon repo...

## Populating apt-get cache...

+ apt-get update
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [69.9 kB]
Hit:3 http://dl.google.com/linux/chrome/deb stable Release                   
Hit:5 http://in.archive.ubuntu.com/ubuntu bionic InRelease                   
Get:6 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease [65.4 kB]
Hit:7 http://in.archive.ubuntu.com/ubuntu bionic-backports InRelease
Get:8 http://in.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [9,544 B]
Get:9 http://in.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [9,576 B]
Fetched 154 kB in 3s (44.8 kB/s)   
Reading package lists... Done

## Confirming "bionic" is supported...

+ curl -sLf -o /dev/null 'https://deb.nodesource.com/node_8.x/dists/bionic/Release'

## Adding the NodeSource signing key to your keyring...

+ curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -

## Creating apt sources list file for the NodeSource Node.js 8.x LTS Carbon repo...

+ echo 'deb https://deb.nodesource.com/node_8.x bionic main' > /etc/apt/sources.list.d/nodesource.list
+ echo 'deb-src https://deb.nodesource.com/node_8.x bionic main' >> /etc/apt/sources.list.d/nodesource.list

## Running `apt-get update` for you...

+ apt-get update
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://in.archive.ubuntu.com/ubuntu bionic InRelease                   
Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [69.9 kB]   
Get:4 https://deb.nodesource.com/node_8.x bionic InRelease [4,622 B]         
Hit:5 http://dl.google.com/linux/chrome/deb stable Release                   
Get:6 https://deb.nodesource.com/node_8.x bionic/main i386 Packages [763 B]   
Get:8 https://deb.nodesource.com/node_8.x bionic/main amd64 Packages [767 B] 
Hit:9 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease           
Hit:10 http://in.archive.ubuntu.com/ubuntu bionic-backports InRelease         
Fetched 76.1 kB in 2s (32.9 kB/s)                             
Reading package lists... Done

## Run `sudo apt-get install -y nodejs` to install Node.js 8.x LTS Carbon and npm
## You may also need development tools to build native addons:
     sudo apt-get install gcc g++ make
## To install the Yarn package manager, run:
     curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
     echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
     sudo apt-get update && sudo apt-get install yarn

sudo apt-get install -y nodejs
Reading package lists... Done
Building dependency tree     
Reading state information... Done
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 12.6 MB of archives.
After this operation, 61.3 MB of additional disk space will be used.
Get:1 https://deb.nodesource.com/node_8.x bionic/main amd64 nodejs amd64 8.11.1-1nodesource1 [12.6 MB]
5% [1 nodejs 835 kB/12.6 MB 7%]                              85.6 kB/s 2min 17s^5% [1 nodejs 851 kB/12.6 MB 7%]                              85.6 kB/s 2min 17s^Fetched 12.6 MB in 1min 34s (134 kB/s)                                       
Selecting previously unselected package nodejs.
(Reading database ... 152013 files and directories currently installed.)
Preparing to unpack .../nodejs_8.11.1-1nodesource1_amd64.deb ...
Unpacking nodejs (8.11.1-1nodesource1) ...
Setting up nodejs (8.11.1-1nodesource1) ...
Processing triggers for man-db (2.8.3-2) ...

No comments:

Post a Comment