Ubuntu 18.10 - unable to install NPM











up vote
0
down vote

favorite












I tried to install npm and I repeatedly got error that NPM depends on package node-gyp (>= 0.10.9) but that package is not installable.



I have no packages broken (I search for them using dpkg) but I still can not install NPM.



I can install just nodejs but I need also npm...



Can anyone help me?










share|improve this question







New contributor




Ondřej Doněk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Did you do sudo apt install -f?
    – George Udosen
    Nov 22 at 16:38










  • Yes, I did. I also deletes apt cache, update all sources, purge already installed nodejs and still nothing.
    – Ondřej Doněk
    Nov 22 at 16:39










  • those packages may not be in the cuttle repo yet, not sure?
    – George Udosen
    Nov 22 at 16:44






  • 1




    See here: ubuntu.pkgs.org/18.10/ubuntu-universe-amd64/…
    – George Udosen
    Nov 22 at 16:48















up vote
0
down vote

favorite












I tried to install npm and I repeatedly got error that NPM depends on package node-gyp (>= 0.10.9) but that package is not installable.



I have no packages broken (I search for them using dpkg) but I still can not install NPM.



I can install just nodejs but I need also npm...



Can anyone help me?










share|improve this question







New contributor




Ondřej Doněk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Did you do sudo apt install -f?
    – George Udosen
    Nov 22 at 16:38










  • Yes, I did. I also deletes apt cache, update all sources, purge already installed nodejs and still nothing.
    – Ondřej Doněk
    Nov 22 at 16:39










  • those packages may not be in the cuttle repo yet, not sure?
    – George Udosen
    Nov 22 at 16:44






  • 1




    See here: ubuntu.pkgs.org/18.10/ubuntu-universe-amd64/…
    – George Udosen
    Nov 22 at 16:48













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I tried to install npm and I repeatedly got error that NPM depends on package node-gyp (>= 0.10.9) but that package is not installable.



I have no packages broken (I search for them using dpkg) but I still can not install NPM.



I can install just nodejs but I need also npm...



Can anyone help me?










share|improve this question







New contributor




Ondřej Doněk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I tried to install npm and I repeatedly got error that NPM depends on package node-gyp (>= 0.10.9) but that package is not installable.



I have no packages broken (I search for them using dpkg) but I still can not install NPM.



I can install just nodejs but I need also npm...



Can anyone help me?







apt npm






share|improve this question







New contributor




Ondřej Doněk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




Ondřej Doněk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




Ondřej Doněk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Nov 22 at 16:32









Ondřej Doněk

1033




1033




New contributor




Ondřej Doněk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Ondřej Doněk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Ondřej Doněk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • Did you do sudo apt install -f?
    – George Udosen
    Nov 22 at 16:38










  • Yes, I did. I also deletes apt cache, update all sources, purge already installed nodejs and still nothing.
    – Ondřej Doněk
    Nov 22 at 16:39










  • those packages may not be in the cuttle repo yet, not sure?
    – George Udosen
    Nov 22 at 16:44






  • 1




    See here: ubuntu.pkgs.org/18.10/ubuntu-universe-amd64/…
    – George Udosen
    Nov 22 at 16:48


















  • Did you do sudo apt install -f?
    – George Udosen
    Nov 22 at 16:38










  • Yes, I did. I also deletes apt cache, update all sources, purge already installed nodejs and still nothing.
    – Ondřej Doněk
    Nov 22 at 16:39










  • those packages may not be in the cuttle repo yet, not sure?
    – George Udosen
    Nov 22 at 16:44






  • 1




    See here: ubuntu.pkgs.org/18.10/ubuntu-universe-amd64/…
    – George Udosen
    Nov 22 at 16:48
















Did you do sudo apt install -f?
– George Udosen
Nov 22 at 16:38




Did you do sudo apt install -f?
– George Udosen
Nov 22 at 16:38












Yes, I did. I also deletes apt cache, update all sources, purge already installed nodejs and still nothing.
– Ondřej Doněk
Nov 22 at 16:39




Yes, I did. I also deletes apt cache, update all sources, purge already installed nodejs and still nothing.
– Ondřej Doněk
Nov 22 at 16:39












those packages may not be in the cuttle repo yet, not sure?
– George Udosen
Nov 22 at 16:44




those packages may not be in the cuttle repo yet, not sure?
– George Udosen
Nov 22 at 16:44




1




1




See here: ubuntu.pkgs.org/18.10/ubuntu-universe-amd64/…
– George Udosen
Nov 22 at 16:48




See here: ubuntu.pkgs.org/18.10/ubuntu-universe-amd64/…
– George Udosen
Nov 22 at 16:48










2 Answers
2






active

oldest

votes

















up vote
1
down vote



accepted










Get it installed with these steps if the above comments methods doesn;t fly:



# For the soon to be LTS release, 10.x
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -

# For the bleeding edge, 11.x
curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -


Then install with sudo apt install nodejs.






share|improve this answer

















  • 1




    I forgot to thank you...
    – Ondřej Doněk
    Nov 23 at 19:33










  • Your welcome grateful to have been of help!
    – George Udosen
    Nov 23 at 20:35


















up vote
0
down vote













Uninstall node and install it again with Node Version Manager(first install NVM,then with NVM node version you wish),on this way you will not have any problems with node-gyp or NPM .Good luck.






share|improve this answer










New contributor




Goran7777 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


















  • With NVM? When I tried apt-cache search nvm I got nothing....
    – Ondřej Doněk
    Nov 22 at 16:41










  • Must install NVM first.
    – Goran7777
    Nov 22 at 16:42










  • No, I do not want another utility - I have these troubles on Ubuntu before and I forgot how to solve it - but it was definitively pure apt way - no other utilities. But thanks anyway.
    – Ondřej Doněk
    Nov 22 at 19:18












  • No problem,just trying to help.
    – Goran7777
    Nov 22 at 19:26











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',
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
});


}
});






Ondřej Doněk is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1095153%2fubuntu-18-10-unable-to-install-npm%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








up vote
1
down vote



accepted










Get it installed with these steps if the above comments methods doesn;t fly:



# For the soon to be LTS release, 10.x
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -

# For the bleeding edge, 11.x
curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -


Then install with sudo apt install nodejs.






share|improve this answer

















  • 1




    I forgot to thank you...
    – Ondřej Doněk
    Nov 23 at 19:33










  • Your welcome grateful to have been of help!
    – George Udosen
    Nov 23 at 20:35















up vote
1
down vote



accepted










Get it installed with these steps if the above comments methods doesn;t fly:



# For the soon to be LTS release, 10.x
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -

# For the bleeding edge, 11.x
curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -


Then install with sudo apt install nodejs.






share|improve this answer

















  • 1




    I forgot to thank you...
    – Ondřej Doněk
    Nov 23 at 19:33










  • Your welcome grateful to have been of help!
    – George Udosen
    Nov 23 at 20:35













up vote
1
down vote



accepted







up vote
1
down vote



accepted






Get it installed with these steps if the above comments methods doesn;t fly:



# For the soon to be LTS release, 10.x
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -

# For the bleeding edge, 11.x
curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -


Then install with sudo apt install nodejs.






share|improve this answer












Get it installed with these steps if the above comments methods doesn;t fly:



# For the soon to be LTS release, 10.x
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -

# For the bleeding edge, 11.x
curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -


Then install with sudo apt install nodejs.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 22 at 16:56









George Udosen

18.5k94265




18.5k94265








  • 1




    I forgot to thank you...
    – Ondřej Doněk
    Nov 23 at 19:33










  • Your welcome grateful to have been of help!
    – George Udosen
    Nov 23 at 20:35














  • 1




    I forgot to thank you...
    – Ondřej Doněk
    Nov 23 at 19:33










  • Your welcome grateful to have been of help!
    – George Udosen
    Nov 23 at 20:35








1




1




I forgot to thank you...
– Ondřej Doněk
Nov 23 at 19:33




I forgot to thank you...
– Ondřej Doněk
Nov 23 at 19:33












Your welcome grateful to have been of help!
– George Udosen
Nov 23 at 20:35




Your welcome grateful to have been of help!
– George Udosen
Nov 23 at 20:35












up vote
0
down vote













Uninstall node and install it again with Node Version Manager(first install NVM,then with NVM node version you wish),on this way you will not have any problems with node-gyp or NPM .Good luck.






share|improve this answer










New contributor




Goran7777 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


















  • With NVM? When I tried apt-cache search nvm I got nothing....
    – Ondřej Doněk
    Nov 22 at 16:41










  • Must install NVM first.
    – Goran7777
    Nov 22 at 16:42










  • No, I do not want another utility - I have these troubles on Ubuntu before and I forgot how to solve it - but it was definitively pure apt way - no other utilities. But thanks anyway.
    – Ondřej Doněk
    Nov 22 at 19:18












  • No problem,just trying to help.
    – Goran7777
    Nov 22 at 19:26















up vote
0
down vote













Uninstall node and install it again with Node Version Manager(first install NVM,then with NVM node version you wish),on this way you will not have any problems with node-gyp or NPM .Good luck.






share|improve this answer










New contributor




Goran7777 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


















  • With NVM? When I tried apt-cache search nvm I got nothing....
    – Ondřej Doněk
    Nov 22 at 16:41










  • Must install NVM first.
    – Goran7777
    Nov 22 at 16:42










  • No, I do not want another utility - I have these troubles on Ubuntu before and I forgot how to solve it - but it was definitively pure apt way - no other utilities. But thanks anyway.
    – Ondřej Doněk
    Nov 22 at 19:18












  • No problem,just trying to help.
    – Goran7777
    Nov 22 at 19:26













up vote
0
down vote










up vote
0
down vote









Uninstall node and install it again with Node Version Manager(first install NVM,then with NVM node version you wish),on this way you will not have any problems with node-gyp or NPM .Good luck.






share|improve this answer










New contributor




Goran7777 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









Uninstall node and install it again with Node Version Manager(first install NVM,then with NVM node version you wish),on this way you will not have any problems with node-gyp or NPM .Good luck.







share|improve this answer










New contributor




Goran7777 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this answer



share|improve this answer








edited Nov 22 at 16:41





















New contributor




Goran7777 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









answered Nov 22 at 16:39









Goran7777

185




185




New contributor




Goran7777 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Goran7777 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Goran7777 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • With NVM? When I tried apt-cache search nvm I got nothing....
    – Ondřej Doněk
    Nov 22 at 16:41










  • Must install NVM first.
    – Goran7777
    Nov 22 at 16:42










  • No, I do not want another utility - I have these troubles on Ubuntu before and I forgot how to solve it - but it was definitively pure apt way - no other utilities. But thanks anyway.
    – Ondřej Doněk
    Nov 22 at 19:18












  • No problem,just trying to help.
    – Goran7777
    Nov 22 at 19:26


















  • With NVM? When I tried apt-cache search nvm I got nothing....
    – Ondřej Doněk
    Nov 22 at 16:41










  • Must install NVM first.
    – Goran7777
    Nov 22 at 16:42










  • No, I do not want another utility - I have these troubles on Ubuntu before and I forgot how to solve it - but it was definitively pure apt way - no other utilities. But thanks anyway.
    – Ondřej Doněk
    Nov 22 at 19:18












  • No problem,just trying to help.
    – Goran7777
    Nov 22 at 19:26
















With NVM? When I tried apt-cache search nvm I got nothing....
– Ondřej Doněk
Nov 22 at 16:41




With NVM? When I tried apt-cache search nvm I got nothing....
– Ondřej Doněk
Nov 22 at 16:41












Must install NVM first.
– Goran7777
Nov 22 at 16:42




Must install NVM first.
– Goran7777
Nov 22 at 16:42












No, I do not want another utility - I have these troubles on Ubuntu before and I forgot how to solve it - but it was definitively pure apt way - no other utilities. But thanks anyway.
– Ondřej Doněk
Nov 22 at 19:18






No, I do not want another utility - I have these troubles on Ubuntu before and I forgot how to solve it - but it was definitively pure apt way - no other utilities. But thanks anyway.
– Ondřej Doněk
Nov 22 at 19:18














No problem,just trying to help.
– Goran7777
Nov 22 at 19:26




No problem,just trying to help.
– Goran7777
Nov 22 at 19:26










Ondřej Doněk is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















Ondřej Doněk is a new contributor. Be nice, and check out our Code of Conduct.













Ondřej Doněk is a new contributor. Be nice, and check out our Code of Conduct.












Ondřej Doněk is a new contributor. Be nice, and check out our Code of Conduct.















 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1095153%2fubuntu-18-10-unable-to-install-npm%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

Mangá

 ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕