Answer the question
In order to leave comments, you need to log in
How to install NPM on ubuntu 14.04?
I wrote the command sudo apt-get install npm and after that it gives an error.
What to do?
Some packages cannot be installed. Perhaps you are asking for the impossible,
or you are using an unstable version of the distribution where the
packages you requested have not yet been built or have been removed from Incoming.
The following information may help you:
Packages that have unmet dependencies:
npm : Depends: nodejs but it won't be installed
Depends: node-abbrev (>= 1.0.4) but it won't be installed
Depends: node-ansi but it won't installed
Depends: node-archy but it will not be installed
Depends: node-block-stream but it will not be installed
Depends: node-fstream (>= 0.1.22) but it will not be installed
Depends: node-fstream-ignore but it will not be installed
Depends: node-github-url-from-git but it will not be installed
Depends: node-glob (>= 3.1.21) but it will not be installed
Depends: node-graceful-fs (>= 2.0.0) but it will not be installed
Depends: node-inherits but it will not be installed
Depends: node-ini (>= 1.1 .0) but it will not be installed
Depends: node-lockfile but it will not be installed
Depends: node-lru-cache (>= 2.3.0) but it will not be installed
Depends: node-minimatch (>= 0.2.11) but it won't install
Depends: node-mkdirp (>= 0.3.3) but it won't install
Depends: node-gyp (>= 0.10.9) but it won't install
Depends: node-nopt (>= 2.1.1) but it won't install
Depends: node-npmlog but it won't install
Depends: node-once but it will not be installed
Depends: node-osenv but it will not be installed
Depends: node-read but it will not be installed
Depends: node-read-package-json (>= 1.1.0) but it will not be installed
Depends: node-request (>= 2.25.0) but it will not be installed
Depends: node-retry but it will not be installed
Depends: node-rimraf (>= 2.2.2) but it will not be installed
Depends: node-semver (>= 2.1.0 ) but it won't install
Depends: node-sha but it will not be installed
Depends: node-slide but it will not be installed
Depends: node-tar (>= 0.1.18) but it will not be installed
Depends: node-which but it will not be installed
E: Impossible fix bugs, you have broken packages on hold.
node.js installed
Answer the question
In order to leave comments, you need to log in
I advise you to use the latest stable release from ppa:
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install python-software-properties python g++ make nodejs
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question