Cannot install latest stable nodejs after node 6 was installed


up vote
0
down vote
favorite
I tried to upgrade node 6.x to latest stable. I tried few methods with apt-get, nvm, npm and nothing helped.
Why I cannot get latest stable node on Ubuntu 16.04 as simple as:
sudo apt-get update
sudo apt-get install nodejs
How can I get latest stable node on Ubuntu 16.04?
here my terminal copy-paste:
pm@pm-node:~$ sudo apt-get update
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Hit:3 http://ua.archive.ubuntu.com/ubuntu xenial InRelease
Get:4 http://ua.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Hit:5 http://packages.microsoft.com/repos/vscode stable InRelease
Get:6 http://ua.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Hit:7 http://dl.google.com/linux/chrome/deb stable Release
Hit:8 https://deb.nodesource.com/node_8.x xenial InRelease
Get:9 http://ua.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [317 kB]
Get:10 http://ua.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [226 kB]
Get:12 http://ua.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [190 kB]
Get:13 http://ua.archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [266 kB]
Get:14 http://ua.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [5ÃÂ 888 B]
Get:15 http://ua.archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3ÃÂ 328 B]
Get:16 http://ua.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [7ÃÂ 084 B]
Get:17 http://ua.archive.ubuntu.com/ubuntu xenial-backports/universe i386 Packages [7ÃÂ 060 B]
Get:18 http://ua.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [4ÃÂ 696 B]
Fetched 1ÃÂ 334 kB in 2s (535 kB/s)
Reading package lists... Done
pm@pm-node:~$ sudo apt-get install nodejs
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
nodejs
0 upgraded, 1 newly installed, 0 to remove and 173 not upgraded.
Need to get 0 B/12,7 MB of archives.
After this operation, 61,3 MB of additional disk space will be used.
Selecting previously unselected package nodejs.
(Reading database ... 221467 files and directories currently installed.)
Preparing to unpack .../nodejs_8.10.0-1nodesource1_amd64.deb ...
Unpacking nodejs (8.10.0-1nodesource1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up nodejs (8.10.0-1nodesource1) ...
pm@pm-node:~$ node -version
bash: /home/pm/.nvm/versions/node/v6.11.4/bin/node: No such file or directory
pm@pm-node:~$ node --version
bash: /home/pm/.nvm/versions/node/v6.11.4/bin/node: No such file or directory
pm@pm-node:~$
nodejs
add a comment |Â
up vote
0
down vote
favorite
I tried to upgrade node 6.x to latest stable. I tried few methods with apt-get, nvm, npm and nothing helped.
Why I cannot get latest stable node on Ubuntu 16.04 as simple as:
sudo apt-get update
sudo apt-get install nodejs
How can I get latest stable node on Ubuntu 16.04?
here my terminal copy-paste:
pm@pm-node:~$ sudo apt-get update
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Hit:3 http://ua.archive.ubuntu.com/ubuntu xenial InRelease
Get:4 http://ua.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Hit:5 http://packages.microsoft.com/repos/vscode stable InRelease
Get:6 http://ua.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Hit:7 http://dl.google.com/linux/chrome/deb stable Release
Hit:8 https://deb.nodesource.com/node_8.x xenial InRelease
Get:9 http://ua.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [317 kB]
Get:10 http://ua.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [226 kB]
Get:12 http://ua.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [190 kB]
Get:13 http://ua.archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [266 kB]
Get:14 http://ua.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [5ÃÂ 888 B]
Get:15 http://ua.archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3ÃÂ 328 B]
Get:16 http://ua.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [7ÃÂ 084 B]
Get:17 http://ua.archive.ubuntu.com/ubuntu xenial-backports/universe i386 Packages [7ÃÂ 060 B]
Get:18 http://ua.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [4ÃÂ 696 B]
Fetched 1ÃÂ 334 kB in 2s (535 kB/s)
Reading package lists... Done
pm@pm-node:~$ sudo apt-get install nodejs
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
nodejs
0 upgraded, 1 newly installed, 0 to remove and 173 not upgraded.
Need to get 0 B/12,7 MB of archives.
After this operation, 61,3 MB of additional disk space will be used.
Selecting previously unselected package nodejs.
(Reading database ... 221467 files and directories currently installed.)
Preparing to unpack .../nodejs_8.10.0-1nodesource1_amd64.deb ...
Unpacking nodejs (8.10.0-1nodesource1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up nodejs (8.10.0-1nodesource1) ...
pm@pm-node:~$ node -version
bash: /home/pm/.nvm/versions/node/v6.11.4/bin/node: No such file or directory
pm@pm-node:~$ node --version
bash: /home/pm/.nvm/versions/node/v6.11.4/bin/node: No such file or directory
pm@pm-node:~$
nodejs
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I tried to upgrade node 6.x to latest stable. I tried few methods with apt-get, nvm, npm and nothing helped.
Why I cannot get latest stable node on Ubuntu 16.04 as simple as:
sudo apt-get update
sudo apt-get install nodejs
How can I get latest stable node on Ubuntu 16.04?
here my terminal copy-paste:
pm@pm-node:~$ sudo apt-get update
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Hit:3 http://ua.archive.ubuntu.com/ubuntu xenial InRelease
Get:4 http://ua.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Hit:5 http://packages.microsoft.com/repos/vscode stable InRelease
Get:6 http://ua.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Hit:7 http://dl.google.com/linux/chrome/deb stable Release
Hit:8 https://deb.nodesource.com/node_8.x xenial InRelease
Get:9 http://ua.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [317 kB]
Get:10 http://ua.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [226 kB]
Get:12 http://ua.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [190 kB]
Get:13 http://ua.archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [266 kB]
Get:14 http://ua.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [5ÃÂ 888 B]
Get:15 http://ua.archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3ÃÂ 328 B]
Get:16 http://ua.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [7ÃÂ 084 B]
Get:17 http://ua.archive.ubuntu.com/ubuntu xenial-backports/universe i386 Packages [7ÃÂ 060 B]
Get:18 http://ua.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [4ÃÂ 696 B]
Fetched 1ÃÂ 334 kB in 2s (535 kB/s)
Reading package lists... Done
pm@pm-node:~$ sudo apt-get install nodejs
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
nodejs
0 upgraded, 1 newly installed, 0 to remove and 173 not upgraded.
Need to get 0 B/12,7 MB of archives.
After this operation, 61,3 MB of additional disk space will be used.
Selecting previously unselected package nodejs.
(Reading database ... 221467 files and directories currently installed.)
Preparing to unpack .../nodejs_8.10.0-1nodesource1_amd64.deb ...
Unpacking nodejs (8.10.0-1nodesource1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up nodejs (8.10.0-1nodesource1) ...
pm@pm-node:~$ node -version
bash: /home/pm/.nvm/versions/node/v6.11.4/bin/node: No such file or directory
pm@pm-node:~$ node --version
bash: /home/pm/.nvm/versions/node/v6.11.4/bin/node: No such file or directory
pm@pm-node:~$
nodejs
I tried to upgrade node 6.x to latest stable. I tried few methods with apt-get, nvm, npm and nothing helped.
Why I cannot get latest stable node on Ubuntu 16.04 as simple as:
sudo apt-get update
sudo apt-get install nodejs
How can I get latest stable node on Ubuntu 16.04?
here my terminal copy-paste:
pm@pm-node:~$ sudo apt-get update
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Hit:3 http://ua.archive.ubuntu.com/ubuntu xenial InRelease
Get:4 http://ua.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Hit:5 http://packages.microsoft.com/repos/vscode stable InRelease
Get:6 http://ua.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Hit:7 http://dl.google.com/linux/chrome/deb stable Release
Hit:8 https://deb.nodesource.com/node_8.x xenial InRelease
Get:9 http://ua.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [317 kB]
Get:10 http://ua.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [226 kB]
Get:12 http://ua.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [190 kB]
Get:13 http://ua.archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [266 kB]
Get:14 http://ua.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [5ÃÂ 888 B]
Get:15 http://ua.archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3ÃÂ 328 B]
Get:16 http://ua.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [7ÃÂ 084 B]
Get:17 http://ua.archive.ubuntu.com/ubuntu xenial-backports/universe i386 Packages [7ÃÂ 060 B]
Get:18 http://ua.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [4ÃÂ 696 B]
Fetched 1ÃÂ 334 kB in 2s (535 kB/s)
Reading package lists... Done
pm@pm-node:~$ sudo apt-get install nodejs
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
nodejs
0 upgraded, 1 newly installed, 0 to remove and 173 not upgraded.
Need to get 0 B/12,7 MB of archives.
After this operation, 61,3 MB of additional disk space will be used.
Selecting previously unselected package nodejs.
(Reading database ... 221467 files and directories currently installed.)
Preparing to unpack .../nodejs_8.10.0-1nodesource1_amd64.deb ...
Unpacking nodejs (8.10.0-1nodesource1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up nodejs (8.10.0-1nodesource1) ...
pm@pm-node:~$ node -version
bash: /home/pm/.nvm/versions/node/v6.11.4/bin/node: No such file or directory
pm@pm-node:~$ node --version
bash: /home/pm/.nvm/versions/node/v6.11.4/bin/node: No such file or directory
pm@pm-node:~$
nodejs
nodejs
asked Mar 18 at 17:30
Pavlo
1064
1064
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
sudo apt-get install python-software-properties
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
The PPA will be added. After this install.
sudo apt-get install nodejs
To check your version try this nodejs -v
.
You should see an output like: v8.10.0
You may want this too:
sudo apt-get install build-essential
Best of luck.
I've just tried my instructions on debian raspberry pi and result is:
pi@192:/ $ nodejs -v
v8.10.0
pi@192:/ $ npm -v
5.6.0
I was able to get node 8.x installed this way, but not the npm. Could you explain why I need python-software-properties to setup node?
â Pavlo
Mar 18 at 19:01
Over the internet I've read that some people are having issues installing nodejs without this. It makes no sense to me but just to be sure.
â TuÃÂberk Kaan Duman
Mar 18 at 19:18
Yes, same experience :) - no sense to me either.
â Pavlo
Mar 18 at 19:45
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
sudo apt-get install python-software-properties
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
The PPA will be added. After this install.
sudo apt-get install nodejs
To check your version try this nodejs -v
.
You should see an output like: v8.10.0
You may want this too:
sudo apt-get install build-essential
Best of luck.
I've just tried my instructions on debian raspberry pi and result is:
pi@192:/ $ nodejs -v
v8.10.0
pi@192:/ $ npm -v
5.6.0
I was able to get node 8.x installed this way, but not the npm. Could you explain why I need python-software-properties to setup node?
â Pavlo
Mar 18 at 19:01
Over the internet I've read that some people are having issues installing nodejs without this. It makes no sense to me but just to be sure.
â TuÃÂberk Kaan Duman
Mar 18 at 19:18
Yes, same experience :) - no sense to me either.
â Pavlo
Mar 18 at 19:45
add a comment |Â
up vote
1
down vote
sudo apt-get install python-software-properties
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
The PPA will be added. After this install.
sudo apt-get install nodejs
To check your version try this nodejs -v
.
You should see an output like: v8.10.0
You may want this too:
sudo apt-get install build-essential
Best of luck.
I've just tried my instructions on debian raspberry pi and result is:
pi@192:/ $ nodejs -v
v8.10.0
pi@192:/ $ npm -v
5.6.0
I was able to get node 8.x installed this way, but not the npm. Could you explain why I need python-software-properties to setup node?
â Pavlo
Mar 18 at 19:01
Over the internet I've read that some people are having issues installing nodejs without this. It makes no sense to me but just to be sure.
â TuÃÂberk Kaan Duman
Mar 18 at 19:18
Yes, same experience :) - no sense to me either.
â Pavlo
Mar 18 at 19:45
add a comment |Â
up vote
1
down vote
up vote
1
down vote
sudo apt-get install python-software-properties
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
The PPA will be added. After this install.
sudo apt-get install nodejs
To check your version try this nodejs -v
.
You should see an output like: v8.10.0
You may want this too:
sudo apt-get install build-essential
Best of luck.
I've just tried my instructions on debian raspberry pi and result is:
pi@192:/ $ nodejs -v
v8.10.0
pi@192:/ $ npm -v
5.6.0
sudo apt-get install python-software-properties
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
The PPA will be added. After this install.
sudo apt-get install nodejs
To check your version try this nodejs -v
.
You should see an output like: v8.10.0
You may want this too:
sudo apt-get install build-essential
Best of luck.
I've just tried my instructions on debian raspberry pi and result is:
pi@192:/ $ nodejs -v
v8.10.0
pi@192:/ $ npm -v
5.6.0
edited Mar 18 at 18:21
answered Mar 18 at 18:16


TuÃÂberk Kaan Duman
1915
1915
I was able to get node 8.x installed this way, but not the npm. Could you explain why I need python-software-properties to setup node?
â Pavlo
Mar 18 at 19:01
Over the internet I've read that some people are having issues installing nodejs without this. It makes no sense to me but just to be sure.
â TuÃÂberk Kaan Duman
Mar 18 at 19:18
Yes, same experience :) - no sense to me either.
â Pavlo
Mar 18 at 19:45
add a comment |Â
I was able to get node 8.x installed this way, but not the npm. Could you explain why I need python-software-properties to setup node?
â Pavlo
Mar 18 at 19:01
Over the internet I've read that some people are having issues installing nodejs without this. It makes no sense to me but just to be sure.
â TuÃÂberk Kaan Duman
Mar 18 at 19:18
Yes, same experience :) - no sense to me either.
â Pavlo
Mar 18 at 19:45
I was able to get node 8.x installed this way, but not the npm. Could you explain why I need python-software-properties to setup node?
â Pavlo
Mar 18 at 19:01
I was able to get node 8.x installed this way, but not the npm. Could you explain why I need python-software-properties to setup node?
â Pavlo
Mar 18 at 19:01
Over the internet I've read that some people are having issues installing nodejs without this. It makes no sense to me but just to be sure.
â TuÃÂberk Kaan Duman
Mar 18 at 19:18
Over the internet I've read that some people are having issues installing nodejs without this. It makes no sense to me but just to be sure.
â TuÃÂberk Kaan Duman
Mar 18 at 19:18
Yes, same experience :) - no sense to me either.
â Pavlo
Mar 18 at 19:45
Yes, same experience :) - no sense to me either.
â Pavlo
Mar 18 at 19:45
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1017058%2fcannot-install-latest-stable-nodejs-after-node-6-was-installed%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password