How to install LTS Nodejs

Message
Author
User avatar
Biofobico
Posts: 14
Joined: Thu Jan 18, 2018 5:32 pm

How to install LTS Nodejs

#1 Post by Biofobico »

Searching returns:

Code: Select all

$ apt-cache policy nodejs
nodejs:
  Installed: (none)
  Candidate: 4.8.2~dfsg-1
  Version table:
     4.8.2~dfsg-1 500
        500 http://ftp.pt.debian.org/debian stretch/main amd64 Packages
Then I tried:

Code: Select all

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

## Installing the NodeSource Node.js v8.x repo...


## Populating apt-get cache...

+ apt-get update
Hit:1 http://security.debian.org stretch/updates InRelease
Hit:2 http://ftp.pt.debian.org/debian stretch-updates InRelease             
Ign:3 http://ftp.pt.debian.org/debian stretch InRelease                                            
Hit:4 http://ftp.pt.debian.org/debian stretch Release                                              
Ign:5 http://dl.google.com/linux/chrome/deb stable InRelease                     
Hit:6 http://dl.google.com/linux/chrome/deb stable Release                       
Get:8 http://dl.google.com/linux/chrome/deb stable Release.gpg [819 B]          
Ign:9 http://it.mxrepo.com/antix/stretch stretch InRelease       
Hit:10 http://it.mxrepo.com/mx/repo stretch InRelease
Hit:11 http://it.mxrepo.com/antix/stretch stretch Release
Fetched 819 B in 5s (148 B/s) 
Reading package lists... Done

## Installing packages required for setup: apt-transport-https...

+ apt-get install -y apt-transport-https > /dev/null 2>&1

## Confirming "Horizon" is supported...

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

## Your distribution, identified as "Horizon", is not currently supported, please contact NodeSource at https://github.com/nodesource/distributions/issues if you think this is incorrect or would like your distribution to be considered for support
Also considered installing from Debian Sid but being new to linux, I don't know if it is a good practice.
Thanks in advance.

User avatar
Jerry3904
Administrator
Posts: 21941
Joined: Wed Jul 19, 2006 6:13 am

Re: How to install LTS Nodejs

#2 Post by Jerry3904 »

Why not follow the usual procedure in Synaptic or on the command line:

Code: Select all

$ sudo apt install nodejs
[sudo] password for jb: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libuv1
The following NEW packages will be installed:
  libuv1 nodejs
0 upgraded, 2 newly installed, 0 to remove and 3 not upgraded.
Need to get 3,524 kB of archives.
After this operation, 14.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://ftp.us.debian.org/debian stretch/main amd64 libuv1 amd64 1.9.1-3 [84.4 kB]
Get:2 http://ftp.us.debian.org/debian stretch/main amd64 nodejs amd64 4.8.2~dfsg-1 [3,440 kB]
Fetched 3,524 kB in 1s (2,613 kB/s) 
Selecting previously unselected package libuv1:amd64.
(Reading database ... 347262 files and directories currently installed.)
Preparing to unpack .../libuv1_1.9.1-3_amd64.deb ...
Unpacking libuv1:amd64 (1.9.1-3) ...
Selecting previously unselected package nodejs.
Preparing to unpack .../nodejs_4.8.2~dfsg-1_amd64.deb ...
Unpacking nodejs (4.8.2~dfsg-1) ...
Setting up libuv1:amd64 (1.9.1-3) ...
Processing triggers for libc-bin (2.24-11+deb9u1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up nodejs (4.8.2~dfsg-1) ...
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
Biofobico
Posts: 14
Joined: Thu Jan 18, 2018 5:32 pm

Re: How to install LTS Nodejs

#3 Post by Biofobico »

Because if I'm interpret correctly:

Code: Select all

$ apt-cache policy nodejs
nodejs:
  Installed: (none)
  Candidate: 4.8.2~dfsg-1
  Version table:
     4.8.2~dfsg-1 500
        500 http://ftp.pt.debian.org/debian stretch/main amd64 Packages
it will install nodejs version 4.8.2 and not LTS Nodejs. which is 8.9.4.

User avatar
Jerry3904
Administrator
Posts: 21941
Joined: Wed Jul 19, 2006 6:13 am

Re: How to install LTS Nodejs

#4 Post by Jerry3904 »

Ah, missed that.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
stsoh
Posts: 183
Joined: Sun Aug 20, 2017 10:11 am

Re: How to install LTS Nodejs

#5 Post by stsoh »

ver 8.9.3 on sid.
MX-17.1_x64 Horizon, G41M-P33 Combo (MS-7592), Pentium E5400 (2706 MHz), 8Gb RAM (984 MT/s),
Intel 4 Series Integrated Graphics, Realtek PCIe Fast RTL8101/2/6E, PCI Gigabit RTL8169 Ethernets.
Accepted Linux when i found MX-Linux in 2016.

User avatar
Biofobico
Posts: 14
Joined: Thu Jan 18, 2018 5:32 pm

Re: How to install LTS Nodejs

#6 Post by Biofobico »

stsoh wrote:ver 8.9.3 on sid.
As I stated on #1 post, I'm in doubt if it is good practice doing it.

User avatar
stsoh
Posts: 183
Joined: Sun Aug 20, 2017 10:11 am

Re: How to install LTS Nodejs

#7 Post by stsoh »

deleted
Last edited by stsoh on Tue Feb 06, 2018 1:55 am, edited 1 time in total.
MX-17.1_x64 Horizon, G41M-P33 Combo (MS-7592), Pentium E5400 (2706 MHz), 8Gb RAM (984 MT/s),
Intel 4 Series Integrated Graphics, Realtek PCIe Fast RTL8101/2/6E, PCI Gigabit RTL8169 Ethernets.
Accepted Linux when i found MX-Linux in 2016.

User avatar
Biofobico
Posts: 14
Joined: Thu Jan 18, 2018 5:32 pm

Re: How to install LTS Nodejs

#8 Post by Biofobico »

Thank you.

User avatar
Biofobico
Posts: 14
Joined: Thu Jan 18, 2018 5:32 pm

Re: How to install LTS Nodejs

#9 Post by Biofobico »

[quote="stsoh"]edit:deleted/quote]

So what is the Sid repo address? I went searching for it at the Debian's site, but found none.
Last edited by Biofobico on Tue Feb 06, 2018 10:02 am, edited 1 time in total.

User avatar
stsoh
Posts: 183
Joined: Sun Aug 20, 2017 10:11 am

Re: How to install LTS Nodejs

#10 Post by stsoh »

deleted
Last edited by stsoh on Tue Feb 06, 2018 1:56 am, edited 2 times in total.
MX-17.1_x64 Horizon, G41M-P33 Combo (MS-7592), Pentium E5400 (2706 MHz), 8Gb RAM (984 MT/s),
Intel 4 Series Integrated Graphics, Realtek PCIe Fast RTL8101/2/6E, PCI Gigabit RTL8169 Ethernets.
Accepted Linux when i found MX-Linux in 2016.

Post Reply

Return to “Software / Configuration”