when sudo apt-get install npm nodejs-legacy The 2019 Stack Overflow Developer Survey Results Are InUbuntu / Install NodeJS & npmsudo apt-get install npm errorReinstall NodeJS and npmhow to install kjots in ubuntu 16.04VLC will not installnpm install, npm -v, sudo npm install do nothingWhile installing npm in I'am getting nodejs dependency error like nodejs-dev is not going to be installed, why?16.04 Trezor Bridge install helpUbuntu 18.10 - unable to install NPMImpossible to install R on Ubuntu 16.04
Output the Arecibo Message
Why is the Constellation's nose gear so long?
Is there a symbol for a right arrow with a square in the middle?
"as much details as you can remember"
Why can Shazam fly?
Apparent duplicates between Haynes service instructions and MOT
Am I thawing this London Broil safely?
How to answer pointed "are you quitting" questioning when I don't want them to suspect
Should I use my personal e-mail address, or my workplace one, when registering to external websites for work purposes?
Did Scotland spend $250,000 for the slogan "Welcome to Scotland"?
Worn-tile Scrabble
Why do we hear so much about the Trump administration deciding to impose and then remove tariffs?
How to deal with fear of taking dependencies
How technical should a Scrum Master be to effectively remove impediments?
Are spiders unable to hurt humans, especially very small spiders?
Distributing a matrix
Is bread bad for ducks?
One word riddle: Vowel in the middle
What does Linus Torvalds mean when he says that Git "never ever" tracks a file?
Why not take a picture of a closer black hole?
Is an up-to-date browser secure on an out-of-date OS?
Does coating your armor in silver add any effects?
What is the meaning of Triage in Cybersec world?
Time travel alters history but people keep saying nothing's changed
when sudo apt-get install npm nodejs-legacy
The 2019 Stack Overflow Developer Survey Results Are InUbuntu / Install NodeJS & npmsudo apt-get install npm errorReinstall NodeJS and npmhow to install kjots in ubuntu 16.04VLC will not installnpm install, npm -v, sudo npm install do nothingWhile installing npm in I'am getting nodejs dependency error like nodejs-dev is not going to be installed, why?16.04 Trezor Bridge install helpUbuntu 18.10 - unable to install NPMImpossible to install R on Ubuntu 16.04
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
nodejs-legacy : Depends: nodejs (>= 0.6.19~dfsg1-3~) but it is not going to be installed
npm : Depends: nodejs but it is not going to be installed
Depends: node-abbrev (>= 1.0.4) but it is not going to be installed
Depends: node-ansi (>= 0.3.0-2) but it is not going to be installed
Depends: node-ansi-color-table but it is not going to be installed
Depends: node-archy but it is not going to be installed
Depends: node-block-stream but it is not going to be installed
Depends: node-fstream (>= 0.1.22) but it is not going to be installed
Depends: node-fstream-ignore but it is not going to be installed
Depends: node-github-url-from-git but it is not going to be installed
Depends: node-glob (>= 3.1.21) but it is not going to be installed
Depends: node-graceful-fs (>= 2.0.0) but it is not going to be installed
Depends: node-inherits but it is not going to be installed
Depends: node-ini (>= 1.1.0) but it is not going to be installed
Depends: node-lockfile but it is not going to be installed
Depends: node-lru-cache (>= 2.3.0) but it is not going to be installed
Depends: node-minimatch (>= 0.2.11) but it is not going to be installed
Depends: node-mkdirp (>= 0.3.3) but it is not going to be installed
Depends: node-gyp (>= 0.10.9) but it is not going to be installed
Depends: node-nopt (>= 3.0.1) but it is not going to be installed
Depends: node-npmlog but it is not going to be installed
Depends: node-once but it is not going to be installed
Depends: node-osenv but it is not going to be installed
Depends: node-read but it is not going to be installed
Depends: node-read-package-json (>= 1.1.0) but it is not going to be installed
Depends: node-request (>= 2.25.0) but it is not going to be installed
Depends: node-retry but it is not going to be installed
Depends: node-rimraf (>= 2.2.2) but it is not going to be installed
Depends: node-semver (>= 2.1.0) but it is not going to be installed
Depends: node-sha but it is not going to be installed
Depends: node-slide but it is not going to be installed
Depends: node-tar (>= 0.1.18) but it is not going to be installed
Depends: node-underscore but it is not going to be installed
Depends: node-which but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
16.04 npm
bumped to the homepage by Community♦ 2 days ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
|
show 3 more comments
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
nodejs-legacy : Depends: nodejs (>= 0.6.19~dfsg1-3~) but it is not going to be installed
npm : Depends: nodejs but it is not going to be installed
Depends: node-abbrev (>= 1.0.4) but it is not going to be installed
Depends: node-ansi (>= 0.3.0-2) but it is not going to be installed
Depends: node-ansi-color-table but it is not going to be installed
Depends: node-archy but it is not going to be installed
Depends: node-block-stream but it is not going to be installed
Depends: node-fstream (>= 0.1.22) but it is not going to be installed
Depends: node-fstream-ignore but it is not going to be installed
Depends: node-github-url-from-git but it is not going to be installed
Depends: node-glob (>= 3.1.21) but it is not going to be installed
Depends: node-graceful-fs (>= 2.0.0) but it is not going to be installed
Depends: node-inherits but it is not going to be installed
Depends: node-ini (>= 1.1.0) but it is not going to be installed
Depends: node-lockfile but it is not going to be installed
Depends: node-lru-cache (>= 2.3.0) but it is not going to be installed
Depends: node-minimatch (>= 0.2.11) but it is not going to be installed
Depends: node-mkdirp (>= 0.3.3) but it is not going to be installed
Depends: node-gyp (>= 0.10.9) but it is not going to be installed
Depends: node-nopt (>= 3.0.1) but it is not going to be installed
Depends: node-npmlog but it is not going to be installed
Depends: node-once but it is not going to be installed
Depends: node-osenv but it is not going to be installed
Depends: node-read but it is not going to be installed
Depends: node-read-package-json (>= 1.1.0) but it is not going to be installed
Depends: node-request (>= 2.25.0) but it is not going to be installed
Depends: node-retry but it is not going to be installed
Depends: node-rimraf (>= 2.2.2) but it is not going to be installed
Depends: node-semver (>= 2.1.0) but it is not going to be installed
Depends: node-sha but it is not going to be installed
Depends: node-slide but it is not going to be installed
Depends: node-tar (>= 0.1.18) but it is not going to be installed
Depends: node-underscore but it is not going to be installed
Depends: node-which but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
16.04 npm
bumped to the homepage by Community♦ 2 days ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Please add more information to help with the issue...
– George Udosen
Apr 4 '17 at 13:33
1
Try:sudo apt install -f
, thensudo apt update
,sudo apt dist-upgrade
and finally try installing again
– George Udosen
Apr 4 '17 at 13:34
when type sudo apt update after the sudo apt install -f get another error
– Supun Madushanka
Apr 4 '17 at 13:52
when sudo apt update after sudo apt install get error i will comment error saperate box below
– Supun Madushanka
Apr 4 '17 at 13:56
Err:20 apt.dockerproject.org/repo debian-xenial Release 403 Forbidden Err:21 ppa.launchpad.net/rabbitvcs/ppa/ubuntu xenial Release 404 Not Found
– Supun Madushanka
Apr 4 '17 at 13:56
|
show 3 more comments
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
nodejs-legacy : Depends: nodejs (>= 0.6.19~dfsg1-3~) but it is not going to be installed
npm : Depends: nodejs but it is not going to be installed
Depends: node-abbrev (>= 1.0.4) but it is not going to be installed
Depends: node-ansi (>= 0.3.0-2) but it is not going to be installed
Depends: node-ansi-color-table but it is not going to be installed
Depends: node-archy but it is not going to be installed
Depends: node-block-stream but it is not going to be installed
Depends: node-fstream (>= 0.1.22) but it is not going to be installed
Depends: node-fstream-ignore but it is not going to be installed
Depends: node-github-url-from-git but it is not going to be installed
Depends: node-glob (>= 3.1.21) but it is not going to be installed
Depends: node-graceful-fs (>= 2.0.0) but it is not going to be installed
Depends: node-inherits but it is not going to be installed
Depends: node-ini (>= 1.1.0) but it is not going to be installed
Depends: node-lockfile but it is not going to be installed
Depends: node-lru-cache (>= 2.3.0) but it is not going to be installed
Depends: node-minimatch (>= 0.2.11) but it is not going to be installed
Depends: node-mkdirp (>= 0.3.3) but it is not going to be installed
Depends: node-gyp (>= 0.10.9) but it is not going to be installed
Depends: node-nopt (>= 3.0.1) but it is not going to be installed
Depends: node-npmlog but it is not going to be installed
Depends: node-once but it is not going to be installed
Depends: node-osenv but it is not going to be installed
Depends: node-read but it is not going to be installed
Depends: node-read-package-json (>= 1.1.0) but it is not going to be installed
Depends: node-request (>= 2.25.0) but it is not going to be installed
Depends: node-retry but it is not going to be installed
Depends: node-rimraf (>= 2.2.2) but it is not going to be installed
Depends: node-semver (>= 2.1.0) but it is not going to be installed
Depends: node-sha but it is not going to be installed
Depends: node-slide but it is not going to be installed
Depends: node-tar (>= 0.1.18) but it is not going to be installed
Depends: node-underscore but it is not going to be installed
Depends: node-which but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
16.04 npm
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
nodejs-legacy : Depends: nodejs (>= 0.6.19~dfsg1-3~) but it is not going to be installed
npm : Depends: nodejs but it is not going to be installed
Depends: node-abbrev (>= 1.0.4) but it is not going to be installed
Depends: node-ansi (>= 0.3.0-2) but it is not going to be installed
Depends: node-ansi-color-table but it is not going to be installed
Depends: node-archy but it is not going to be installed
Depends: node-block-stream but it is not going to be installed
Depends: node-fstream (>= 0.1.22) but it is not going to be installed
Depends: node-fstream-ignore but it is not going to be installed
Depends: node-github-url-from-git but it is not going to be installed
Depends: node-glob (>= 3.1.21) but it is not going to be installed
Depends: node-graceful-fs (>= 2.0.0) but it is not going to be installed
Depends: node-inherits but it is not going to be installed
Depends: node-ini (>= 1.1.0) but it is not going to be installed
Depends: node-lockfile but it is not going to be installed
Depends: node-lru-cache (>= 2.3.0) but it is not going to be installed
Depends: node-minimatch (>= 0.2.11) but it is not going to be installed
Depends: node-mkdirp (>= 0.3.3) but it is not going to be installed
Depends: node-gyp (>= 0.10.9) but it is not going to be installed
Depends: node-nopt (>= 3.0.1) but it is not going to be installed
Depends: node-npmlog but it is not going to be installed
Depends: node-once but it is not going to be installed
Depends: node-osenv but it is not going to be installed
Depends: node-read but it is not going to be installed
Depends: node-read-package-json (>= 1.1.0) but it is not going to be installed
Depends: node-request (>= 2.25.0) but it is not going to be installed
Depends: node-retry but it is not going to be installed
Depends: node-rimraf (>= 2.2.2) but it is not going to be installed
Depends: node-semver (>= 2.1.0) but it is not going to be installed
Depends: node-sha but it is not going to be installed
Depends: node-slide but it is not going to be installed
Depends: node-tar (>= 0.1.18) but it is not going to be installed
Depends: node-underscore but it is not going to be installed
Depends: node-which but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
16.04 npm
16.04 npm
edited Apr 4 '17 at 13:32
George Udosen
21.8k104572
21.8k104572
asked Apr 4 '17 at 13:31
Supun MadushankaSupun Madushanka
612
612
bumped to the homepage by Community♦ 2 days ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 2 days ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Please add more information to help with the issue...
– George Udosen
Apr 4 '17 at 13:33
1
Try:sudo apt install -f
, thensudo apt update
,sudo apt dist-upgrade
and finally try installing again
– George Udosen
Apr 4 '17 at 13:34
when type sudo apt update after the sudo apt install -f get another error
– Supun Madushanka
Apr 4 '17 at 13:52
when sudo apt update after sudo apt install get error i will comment error saperate box below
– Supun Madushanka
Apr 4 '17 at 13:56
Err:20 apt.dockerproject.org/repo debian-xenial Release 403 Forbidden Err:21 ppa.launchpad.net/rabbitvcs/ppa/ubuntu xenial Release 404 Not Found
– Supun Madushanka
Apr 4 '17 at 13:56
|
show 3 more comments
Please add more information to help with the issue...
– George Udosen
Apr 4 '17 at 13:33
1
Try:sudo apt install -f
, thensudo apt update
,sudo apt dist-upgrade
and finally try installing again
– George Udosen
Apr 4 '17 at 13:34
when type sudo apt update after the sudo apt install -f get another error
– Supun Madushanka
Apr 4 '17 at 13:52
when sudo apt update after sudo apt install get error i will comment error saperate box below
– Supun Madushanka
Apr 4 '17 at 13:56
Err:20 apt.dockerproject.org/repo debian-xenial Release 403 Forbidden Err:21 ppa.launchpad.net/rabbitvcs/ppa/ubuntu xenial Release 404 Not Found
– Supun Madushanka
Apr 4 '17 at 13:56
Please add more information to help with the issue...
– George Udosen
Apr 4 '17 at 13:33
Please add more information to help with the issue...
– George Udosen
Apr 4 '17 at 13:33
1
1
Try:
sudo apt install -f
, then sudo apt update
, sudo apt dist-upgrade
and finally try installing again– George Udosen
Apr 4 '17 at 13:34
Try:
sudo apt install -f
, then sudo apt update
, sudo apt dist-upgrade
and finally try installing again– George Udosen
Apr 4 '17 at 13:34
when type sudo apt update after the sudo apt install -f get another error
– Supun Madushanka
Apr 4 '17 at 13:52
when type sudo apt update after the sudo apt install -f get another error
– Supun Madushanka
Apr 4 '17 at 13:52
when sudo apt update after sudo apt install get error i will comment error saperate box below
– Supun Madushanka
Apr 4 '17 at 13:56
when sudo apt update after sudo apt install get error i will comment error saperate box below
– Supun Madushanka
Apr 4 '17 at 13:56
Err:20 apt.dockerproject.org/repo debian-xenial Release 403 Forbidden Err:21 ppa.launchpad.net/rabbitvcs/ppa/ubuntu xenial Release 404 Not Found
– Supun Madushanka
Apr 4 '17 at 13:56
Err:20 apt.dockerproject.org/repo debian-xenial Release 403 Forbidden Err:21 ppa.launchpad.net/rabbitvcs/ppa/ubuntu xenial Release 404 Not Found
– Supun Madushanka
Apr 4 '17 at 13:56
|
show 3 more comments
2 Answers
2
active
oldest
votes
I solved issue - had the same. Just run:
sudo apt-get install --reinstall nodejs npm nodejs-legacy
add a comment |
Please use node version manager - nvm
https://github.com/creationix/nvm
this way you can easily switch to the version your projects needs at any moment (which is not supported by ubuntu package)
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f900097%2fwhen-sudo-apt-get-install-npm-nodejs-legacy%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
I solved issue - had the same. Just run:
sudo apt-get install --reinstall nodejs npm nodejs-legacy
add a comment |
I solved issue - had the same. Just run:
sudo apt-get install --reinstall nodejs npm nodejs-legacy
add a comment |
I solved issue - had the same. Just run:
sudo apt-get install --reinstall nodejs npm nodejs-legacy
I solved issue - had the same. Just run:
sudo apt-get install --reinstall nodejs npm nodejs-legacy
edited Aug 16 '17 at 11:44
David Foerster
28.6k1367113
28.6k1367113
answered Jul 29 '17 at 15:17
ArturArtur
1
1
add a comment |
add a comment |
Please use node version manager - nvm
https://github.com/creationix/nvm
this way you can easily switch to the version your projects needs at any moment (which is not supported by ubuntu package)
add a comment |
Please use node version manager - nvm
https://github.com/creationix/nvm
this way you can easily switch to the version your projects needs at any moment (which is not supported by ubuntu package)
add a comment |
Please use node version manager - nvm
https://github.com/creationix/nvm
this way you can easily switch to the version your projects needs at any moment (which is not supported by ubuntu package)
Please use node version manager - nvm
https://github.com/creationix/nvm
this way you can easily switch to the version your projects needs at any moment (which is not supported by ubuntu package)
answered Nov 8 '18 at 11:11
janmyszkierjanmyszkier
61339
61339
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f900097%2fwhen-sudo-apt-get-install-npm-nodejs-legacy%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Please add more information to help with the issue...
– George Udosen
Apr 4 '17 at 13:33
1
Try:
sudo apt install -f
, thensudo apt update
,sudo apt dist-upgrade
and finally try installing again– George Udosen
Apr 4 '17 at 13:34
when type sudo apt update after the sudo apt install -f get another error
– Supun Madushanka
Apr 4 '17 at 13:52
when sudo apt update after sudo apt install get error i will comment error saperate box below
– Supun Madushanka
Apr 4 '17 at 13:56
Err:20 apt.dockerproject.org/repo debian-xenial Release 403 Forbidden Err:21 ppa.launchpad.net/rabbitvcs/ppa/ubuntu xenial Release 404 Not Found
– Supun Madushanka
Apr 4 '17 at 13:56