You are not logged in.

#1 2016-03-13 00:51:30

perchslayer
Member
From: Auburn, California - US
Registered: 2016-01-12
Posts: 115
Website

How Do I Safely and Effectively Install NodeJS on BL? [SOLVED]

DI attempted to install NodeJS on BL and got the following error:

## Your distribution, identified as "bunsen-hydrogen", 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

In turn, I went to the guthub site and posted a request that they make it available for Bunsen Labs. And I guess I will see where that goes. In the meantime, I was hoping someone might be able to tell me how and if there is a way to install it, regardless of the support?

I ask, as this is a very important package for the stuff I want to do. It is a really big deal and emerging, I think, as an essential package for lots of folks.

Thanks in advance.

Last edited by perchslayer (2016-03-13 23:21:13)


Roland Shield
Grill Jockey, Lounge Maven, Unrepentant Agitator
ass.clown@perchslayer.com | "...'ere I am, J.H."

Offline

#2 2016-03-13 01:36:45

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: How Do I Safely and Effectively Install NodeJS on BL? [SOLVED]

You can probably get it to work by using:

sudo apt-get purge bunsen-os-release

Once NodeJS installed, you can re-install the package again.


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#3 2016-03-13 01:44:59

damo
....moderator....
Registered: 2015-08-20
Posts: 4,386

Re: How Do I Safely and Effectively Install NodeJS on BL? [SOLVED]

You should be able to install it, because they support Debian Stable (jessie), which is what BL is based on.

Their Manual Installation page has:

The setup script performs the following steps:

In the commands below you should replace the following placeholders:

    {DISTRO}: replace with the codename of your distro, which will be something like: wheezy, jessie, sid or precise, trusty, utopic, vivid (or other supported Ubuntu or Debian distro)
    {VERSION}: replace with the version of Node.js or io.js you want to install, it should take the following form: node_0.10, node_0.12 or iojs_1.x, iojs_2.x, etc.

So replace "{DISTRO}" with "jessie" etc is what I would try.


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Online

#4 2016-03-13 18:39:16

perchslayer
Member
From: Auburn, California - US
Registered: 2016-01-12
Posts: 115
Website

Re: How Do I Safely and Effectively Install NodeJS on BL? [SOLVED]

Right. That doesn't work. But I appreciate the suggestion. There is another strategy that I am attempting to leverage here at present. And it involves using a linux port of a package called "Homebrew" that was originally made for OSX, cleverly called Linuxbrew

And while Linuxbrew was a boon to find for other interesting reasons, it does not solve the problem at hand.

I would like to respectfully ask anyone who offers any help with this request do so after having successfully installing NodeJS and npm on their own BL desktop.

Thanks.


Roland Shield
Grill Jockey, Lounge Maven, Unrepentant Agitator
ass.clown@perchslayer.com | "...'ere I am, J.H."

Offline

#5 2016-03-13 18:44:37

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: How Do I Safely and Effectively Install NodeJS on BL? [SOLVED]

perchslayer wrote:

That doesn't work

*What* doesn't work?

There were two suggestions given.

Please post exactly what you tried and any terminal output.

EDIT: I installed NodeJS a while ago in a now gone BunsenLabs installation (possibly before bunsen-os-release was packaged) so I know it should work.

Last edited by Head_on_a_Stick (2016-03-13 18:46:43)


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#6 2016-03-13 18:57:54

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: How Do I Safely and Effectively Install NodeJS on BL? [SOLVED]

perchslayer wrote:

I would like to respectfully ask anyone who offers any help with this request do so after having successfully installing NodeJS and npm on their own BL desktop.

I can confirm that removing bunsen-os-release then re-running the script will successfully install Node.JS in BunsenLabs.

I have just installed vtop using npm and it all works just fine.

Scrot or it didn't happen:
2016-03-13-193306_1280x800_scrot.th.png

EDIT: Be aware that the installation script adds a file at /etc/apt/sources.list.d/nodesource.list containing their repository line; simply remove this file and use `sudo apt update` to clear these repositories from your system.

Last edited by Head_on_a_Stick (2016-03-13 19:34:54)


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#7 2016-03-13 22:03:01

perchslayer
Member
From: Auburn, California - US
Registered: 2016-01-12
Posts: 115
Website

Re: How Do I Safely and Effectively Install NodeJS on BL? [SOLVED]

I could not find a "manual installation page and there is no link above to it for the one mentioned that I suppose exists on the NodeJS site. But I did find the installation page in 3 locations
Here: https://nodejs.org/en/download/package-manager/http://unix.stackexchange.com/questions … ian-jessie
Here: http://unix.stackexchange.com/questions … ian-jessie
Here: https://www.rosehosting.com/blog/how-to … -debian-8/


And when I issue the curl command and run it, I get the following:

roland@r0r0:~$ curl -sL [url]https://deb.nodesource.com/setup_5.x[/url] | sudo -E bash -
[sudo] password for roland: 

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


## Populating apt-get cache...

+ apt-get update
Hit [url]http://qgis.org[/url] jessie InRelease
Ign [url]http://packages.linuxmint.com[/url] debian InRelease                             
Ign [url]http://dl.google.com[/url] stable InRelease                                      
Get:1 [url]http://security.debian.org[/url] jessie/updates InRelease [63.1 kB]            
Ign [url]http://ftp.us.debian.org[/url] jessie InRelease                                  
Hit [url]http://dl.google.com[/url] stable Release.gpg                                    
Hit [url]http://qgis.org[/url] jessie/main amd64 Packages                                 
Get:2 [url]http://ftp.us.debian.org[/url] jessie-updates InRelease [142 kB]               
Hit [url]http://packages.linuxmint.com[/url] debian Release.gpg                           
Hit [url]http://dl.google.com[/url] stable Release                                        
Hit [url]http://dl.google.com[/url] stable/main amd64 Packages                            
Hit [url]http://deb.opera.com[/url] stable InRelease                                      
Hit [url]http://www.deb-multimedia.org[/url] jessie InRelease                             
Hit [url]http://pkg.bunsenlabs.org[/url] bunsen-hydrogen InRelease                        
Hit [url]http://packages.linuxmint.com[/url] debian Release                               
Get:3 [url]http://security.debian.org[/url] jessie/updates/main amd64 Packages [217 kB]   
Hit [url]http://deb.opera.com[/url] stable InRelease                                      
Hit [url]http://www.deb-multimedia.org[/url] jessie/main amd64 Packages                   
Hit [url]http://pkg.bunsenlabs.org[/url] bunsen-hydrogen/main amd64 Packages              
Hit [url]http://packages.linuxmint.com[/url] debian/import amd64 Packages                 
Hit [url]http://deb.opera.com[/url] stable/non-free amd64 Packages                        
Hit [url]http://www.deb-multimedia.org[/url] jessie/non-free amd64 Packages               
Hit [url]http://ftp.us.debian.org[/url] jessie Release.gpg                                
Get:4 [url]http://ftp.us.debian.org[/url] jessie-updates/main amd64 Packages/DiffIndex [1,012 B]
Ign [url]http://qgis.org[/url] jessie/main Translation-en_US                              
Get:5 [url]http://ftp.us.debian.org[/url] jessie-updates/contrib amd64 Packages [32 B]    
Ign [url]http://dl.google.com[/url] stable/main Translation-en_US                         
Ign [url]http://qgis.org[/url] jessie/main Translation-en                                 
Get:6 [url]http://ftp.us.debian.org[/url] jessie-updates/non-free amd64 Packages/DiffIndex [736 B]
Ign [url]http://dl.google.com[/url] stable/main Translation-en                            
Get:7 [url]http://ftp.us.debian.org[/url] jessie-updates/contrib Translation-en [14 B]    
Hit [url]http://deb.opera.com[/url] stable/non-free amd64 Packages                        
Get:8 [url]http://security.debian.org[/url] jessie/updates/contrib amd64 Packages [2,506 B]
Get:9 [url]http://ftp.us.debian.org[/url] jessie-updates/main Translation-en/DiffIndex [736 B]
Get:10 [url]http://security.debian.org[/url] jessie/updates/non-free amd64 Packages [14 B]
Get:11 [url]http://security.debian.org[/url] jessie/updates/contrib Translation-en [1,211 B]
Get:12 [url]http://ftp.us.debian.org[/url] jessie-updates/non-free Translation-en/DiffIndex [736 B]
Get:13 [url]http://security.debian.org[/url] jessie/updates/main Translation-en [118 kB]  
Hit [url]http://ftp.us.debian.org[/url] jessie Release                                    
Hit [url]http://ftp.us.debian.org[/url] jessie/main amd64 Packages                        
Hit [url]http://ftp.us.debian.org[/url] jessie/non-free amd64 Packages                    
Hit [url]http://ftp.us.debian.org[/url] jessie/contrib amd64 Packages                     
Get:14 [url]http://security.debian.org[/url] jessie/updates/non-free Translation-en [14 B]
Hit [url]http://ftp.us.debian.org[/url] jessie/contrib Translation-en                     
Ign [url]http://pkg.bunsenlabs.org[/url] bunsen-hydrogen/main Translation-en_US           
Hit [url]http://ftp.us.debian.org[/url] jessie/main Translation-en                        
Ign [url]http://pkg.bunsenlabs.org[/url] bunsen-hydrogen/main Translation-en              
Ign [url]http://packages.linuxmint.com[/url] debian/import Translation-en_US              
Hit [url]http://ftp.us.debian.org[/url] jessie/non-free Translation-en                    
Ign [url]http://packages.linuxmint.com[/url] debian/import Translation-en                 
Ign [url]http://deb.opera.com[/url] stable/non-free Translation-en_US                     
Ign [url]http://www.deb-multimedia.org[/url] jessie/main Translation-en_US
Ign [url]http://deb.opera.com[/url] stable/non-free Translation-en
Ign [url]http://www.deb-multimedia.org[/url] jessie/main Translation-en
Ign [url]http://deb.opera.com[/url] stable/non-free Translation-en_US
Ign [url]http://www.deb-multimedia.org[/url] jessie/non-free Translation-en_US
Ign [url]http://www.deb-multimedia.org[/url] jessie/non-free Translation-en
Ign [url]http://deb.opera.com[/url] stable/non-free Translation-en                        
Fetched 548 kB in 6s (87.1 kB/s)                                               
Reading package lists... Done

## Confirming "bunsen-hydrogen" is supported...

+ curl -sLf -o /dev/null '[url]https://deb.nodesource.com/node_5.x/dists/bunsen-hydrogen/Release[/url]'

## Your distribution, identified as "bunsen-hydrogen", is not currently supported, please contact NodeSource at [url]https://github.com/nodesource/distributions/issues[/url] if you think this is incorrect or would like your distribution to be considered for support

roland@r0r0:~$

Last edited by Head_on_a_Stick (2016-03-13 22:05:37)


Roland Shield
Grill Jockey, Lounge Maven, Unrepentant Agitator
ass.clown@perchslayer.com | "...'ere I am, J.H."

Offline

#8 2016-03-13 22:09:31

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: How Do I Safely and Effectively Install NodeJS on BL? [SOLVED]

Have you actually been reading any of my posts? roll

I wrote:

I can confirm that removing bunsen-os-release then re-running the script will successfully install Node.JS in BunsenLabs.

https://forums.bunsenlabs.org/viewtopic … 825#p21825

So run these commands:

sudo apt-get purge bunsen-os-release
curl -sL https://deb.nodesource.com/setup_5.x | bash -
sudo apt-get install --yes nodejs
sudo apt-get install bunsen-os-release

https://github.com/nodejs/node-v0.x-arc … tributions


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#9 2016-03-13 22:09:56

perchslayer
Member
From: Auburn, California - US
Registered: 2016-01-12
Posts: 115
Website

Re: How Do I Safely and Effectively Install NodeJS on BL? [SOLVED]

Head_on_a_Stick wrote:
perchslayer wrote:

That doesn't work

*What* doesn't work?

There were two suggestions given.

Please post exactly what you tried and any terminal output.

EDIT: I installed NodeJS a while ago in a now gone BunsenLabs installation (possibly before bunsen-os-release was packaged) so I know it should work.

Reading package lists... Done

## Confirming "bunsen-hydrogen" is supported...

+ curl -sLf -o /dev/null 'https://deb.nodesource.com/node_5.x/dists/bunsen-hydrogen/Release'

## Your distribution, identified as "bunsen-hydrogen", 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

roland@r0r0:~$ 

Roland Shield
Grill Jockey, Lounge Maven, Unrepentant Agitator
ass.clown@perchslayer.com | "...'ere I am, J.H."

Offline

#10 2016-03-13 22:18:04

perchslayer
Member
From: Auburn, California - US
Registered: 2016-01-12
Posts: 115
Website

Re: How Do I Safely and Effectively Install NodeJS on BL? [SOLVED]

Head_on_a_Stick wrote:

Have you actually been reading any of my posts? roll

I wrote:

I can confirm that removing bunsen-os-release then re-running the script will successfully install Node.JS in BunsenLabs.

https://forums.bunsenlabs.org/viewtopic … 825#p21825

So run these commands:

sudo apt-get purge bunsen-os-release
curl -sL https://deb.nodesource.com/setup_5.x | bash -
sudo apt-get install --yes nodejs
sudo apt-get install bunsen-os-release

https://github.com/nodejs/node-v0.x-arc … tributions

I thought you were kidding with the above as it seemed to suggest that I unistall my OS. But I just did it anyway and this is what I get:

roland@r0r0:~$ sudo apt-get purge bunsen-os-release
[sudo] password for roland: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'bunsen-os-release' is not installed, so not removed
The following package was automatically installed and is no longer required:
  bunsen-python-apt-template
Use 'apt-get autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 179 not upgraded.
roland@r0r0:~$ sudo curl -sL https://deb.nodesource.com/setup_5.x | bash -

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


## Populating apt-get cache...

+ apt-get update
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
Error executing command, exiting
roland@r0r0:~$ 

Roland Shield
Grill Jockey, Lounge Maven, Unrepentant Agitator
ass.clown@perchslayer.com | "...'ere I am, J.H."

Offline

#11 2016-03-13 22:18:53

perchslayer
Member
From: Auburn, California - US
Registered: 2016-01-12
Posts: 115
Website

Re: How Do I Safely and Effectively Install NodeJS on BL? [SOLVED]

So, does this mean that you were kidding and I just hosed my system?


Roland Shield
Grill Jockey, Lounge Maven, Unrepentant Agitator
ass.clown@perchslayer.com | "...'ere I am, J.H."

Offline

#12 2016-03-13 22:19:59

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: How Do I Safely and Effectively Install NodeJS on BL? [SOLVED]

perchslayer wrote:
+ apt-get update
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
Error executing command, exiting
roland@r0r0:~$ 

You have either synaptic open in the background or another terminal window running an APT-related command.

Close all other windows except the terminal from which you are running these commands and try again.

EDIT: Sorry, that's nonsense, I wasn't concentrating  ops


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#13 2016-03-13 22:21:43

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: How Do I Safely and Effectively Install NodeJS on BL? [SOLVED]

perchslayer wrote:

So, does this mean that you were kidding and I just hosed my system?

No, bunsen-os-release is a package that simply supplies some text files to identify your system as BunsenLabs.

Without that package, your system will be identified as Debian jessie by most scripts and applications (this should not cause any problems and reinstalling the package reverts this).


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#14 2016-03-13 22:23:30

perchslayer
Member
From: Auburn, California - US
Registered: 2016-01-12
Posts: 115
Website

Re: How Do I Safely and Effectively Install NodeJS on BL? [SOLVED]

I just shutdown and started my system and this is what I get on the second command:

roland@r0r0:~$ sudo apt-get purge bunsen-os-release
[sudo] password for roland: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'bunsen-os-release' is not installed, so not removed
The following package was automatically installed and is no longer required:
  bunsen-python-apt-template
Use 'apt-get autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 179 not upgraded.
roland@r0r0:~$ curl -sL https://deb.nodesource.com/setup_5.x | bash -

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


## Populating apt-get cache...

+ apt-get update
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
Error executing command, exiting
roland@r0r0:~$ 

Roland Shield
Grill Jockey, Lounge Maven, Unrepentant Agitator
ass.clown@perchslayer.com | "...'ere I am, J.H."

Offline

#15 2016-03-13 22:26:14

perchslayer
Member
From: Auburn, California - US
Registered: 2016-01-12
Posts: 115
Website

Re: How Do I Safely and Effectively Install NodeJS on BL? [SOLVED]

So to be clear, when I did it the first time and the second time, there was no other process running in any terminal window. In fact, the only other thing running is my browser to see this page and the conky scripts that put cute stuff on my desktop.


Roland Shield
Grill Jockey, Lounge Maven, Unrepentant Agitator
ass.clown@perchslayer.com | "...'ere I am, J.H."

Offline

#16 2016-03-13 22:26:26

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: How Do I Safely and Effectively Install NodeJS on BL? [SOLVED]

Give me a minute...


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#17 2016-03-13 22:27:32

perchslayer
Member
From: Auburn, California - US
Registered: 2016-01-12
Posts: 115
Website

Re: How Do I Safely and Effectively Install NodeJS on BL? [SOLVED]

Is there some sort of corruption in the stuff in /var/lib/????    ?!


Roland Shield
Grill Jockey, Lounge Maven, Unrepentant Agitator
ass.clown@perchslayer.com | "...'ere I am, J.H."

Offline

#18 2016-03-13 22:30:18

perchslayer
Member
From: Auburn, California - US
Registered: 2016-01-12
Posts: 115
Website

Re: How Do I Safely and Effectively Install NodeJS on BL? [SOLVED]

As an aside question, what does this message mean?  "## Your distribution, identified as "bunsen-hydrogen", 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" ?


Roland Shield
Grill Jockey, Lounge Maven, Unrepentant Agitator
ass.clown@perchslayer.com | "...'ere I am, J.H."

Offline

#19 2016-03-13 22:32:59

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: How Do I Safely and Effectively Install NodeJS on BL? [SOLVED]

Right, the script needs to be run as root, which is not very wise at all.

Use:

sudo -i
apt-get purge bunsen-os-release
curl -sL https://deb.nodesource.com/setup_5.x | bash -
apt-get install nodejs
apt-get install bunsen-os-release
exit

Generally speaking, you should *never* download and run random scripts as root.


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#20 2016-03-13 22:33:59

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: How Do I Safely and Effectively Install NodeJS on BL? [SOLVED]

perchslayer wrote:

As an aside question, what does this message mean?  "## Your distribution, identified as "bunsen-hydrogen", 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" ?

It just means that they don't have a section for "BunsenLabs" in their set up script, the "Debian jessie" setting works just fine though.


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#21 2016-03-13 22:59:26

perchslayer
Member
From: Auburn, California - US
Registered: 2016-01-12
Posts: 115
Website

Re: How Do I Safely and Effectively Install NodeJS on BL? [SOLVED]

Holy Crap!!!! I have been at this for days!!! It worked!!!
But I want to take away some learning from this. But I am mostly confused still. Please let me ask some questions before I close the ticket.

1) Is the fact that I installed "Linux Homebrew" and that it runs on my machine gonna be a problem? Should I uninstall it, so I don't get /home-based packages happening and stuff in the "normal" places happening? I mean, is that more of an Apple" way of managing stuff?
( I downloaded and installed it in order to get this to work, originally)

2) I see many "legitimate" sites that suggest the action you are wa3) Hrning against. And I am not AT ALL questioning the logic. Rather, I am trying to get to grips with what I should expect to do as "best practice". And I know it is likely that I should already *know* this....but I don't. 
And so I want to get to a place where can see when the "legitimate" sites are doing dumb stuff. Right now, I will take your advice to heart. But I guess with that, I have to figure out plan "B"..which arrives at my 3rd and final question:

3) How can I avoid this in the future? That is where, specifically, did I go wrong? And how can I avoid it in the future?


Thanks.


Roland Shield
Grill Jockey, Lounge Maven, Unrepentant Agitator
ass.clown@perchslayer.com | "...'ere I am, J.H."

Offline

#22 2016-03-13 23:01:35

perchslayer
Member
From: Auburn, California - US
Registered: 2016-01-12
Posts: 115
Website

Re: How Do I Safely and Effectively Install NodeJS on BL? [SOLVED]

Is it just a matter of the sudo -i and the exit bit? Is that where I screwed up?


Roland Shield
Grill Jockey, Lounge Maven, Unrepentant Agitator
ass.clown@perchslayer.com | "...'ere I am, J.H."

Offline

#23 2016-03-13 23:02:30

perchslayer
Member
From: Auburn, California - US
Registered: 2016-01-12
Posts: 115
Website

Re: How Do I Safely and Effectively Install NodeJS on BL? [SOLVED]

Should I just give up desktop computing and find another hobby?


Roland Shield
Grill Jockey, Lounge Maven, Unrepentant Agitator
ass.clown@perchslayer.com | "...'ere I am, J.H."

Offline

#24 2016-03-13 23:06:13

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: How Do I Safely and Effectively Install NodeJS on BL? [SOLVED]

perchslayer wrote:

How can I avoid this in the future?

Both nodejs and npm are available from the official Debian repositories.

Use https://www.debian.org/distrib/packages#search_packages or the system tools to search the repositories.

A simple `apt-get install nodejs npm` would have installed those without ever running the script at all.

Remember: if you can't `apt-get` it, it's probably not worth having wink


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#25 2016-03-13 23:08:04

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: How Do I Safely and Effectively Install NodeJS on BL? [SOLVED]

perchslayer wrote:

Is it just a matter of the sudo -i and the exit bit? Is that where I screwed up?

Well, the "bash -" bit was run after a pipe and `sudo` wouldn't apply on the other side of the redirection so yes, a full root shell must be used.

Or:

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

As I say, really bad idea though hmm


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

Board footer

Powered by FluxBB