5

I need to run nodejs v10.14. I am currently running version 8.16.0. I have found some instructions which I follow but it causes errors (see below).

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

This causes the following output:

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


## Populating apt-get cache...

+ apt-get update


Hit:29 http://ppa.launchpad.net/wireshark-dev/stable/ubuntu bionic InRelease  
Err:31 http://ppa.launchpad.net/ehoover/compholio/ubuntu bionic Release        
  404  Not Found [IP: 91.189.95.83 80]
Err:32 http://ppa.launchpad.net/pipelight/stable/ubuntu bionic Release         
  404  Not Found [IP: 91.189.95.83 80]
Reading package lists... Done                       
E: The repository 'http://ppa.launchpad.net/ehoover/compholio/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://ppa.launchpad.net/pipelight/stable/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Error executing command, exiting

Any idea how I can get nodejs v10.14 (or higher) installed?

mikewhatever
  • 32,638

1 Answers1

12

your errors seem to be issues with getting your APT cache established -- The links in the curl are not responding valid (See the 404 error in the error stack) ...

Not sure this will actually work if its a connectivity issue, but You might try removing the nodejs installation, updating your packages and reinstalling nodejs 12.x with teh 12.x curl, for example.

To Remove and Reinstall Node & NPM:

First remove node:

sudo apt-get remove nodejs npm  

Then update & upgrade:

sudo apt-get update
sudo apt-get upgrade

Then get your desired Node version:

//where setup_12.x, replace with desired major version
curl -sL deb.nodesource.com/setup_12.x | sudo -E bash - 

And then install your new node version:

sudo apt-get install -y nodejs

That should do it. You can check your current version by:

node -v
npm -v

Hope this helps!

Dan
  • 13,119
Hopskotch
  • 123