Questions tagged [npm]

npm (Node Package Module) is the package manager for the Node.js JavaScript platform.

npm (Node Package Module) is the package manager for the Node.js JavaScript platform. It comes by default with Node.js after install it. The general usage is similar to other package managers like apt-get which work over the terminal and have similar parameters like install and search.

291 questions
231
votes
19 answers

How to install the latest versions of NodeJS and NPM?

I noticed over at the https://nodejs.org/ website that node is currently at v 0.12.0. Can someone let me know how to install the latest version of node together with npm (terminal commands please)?
tonyf
  • 2,637
115
votes
1 answer

npm : Depends: node-gyp (>= 0.10.9) but it is not going to be installed

I want to install npm. I've updated everything but I can't fix the problem. The message I get is: Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean…
60
votes
4 answers

"No such file or directory" error while using npm

I installed node and npm using the instructions provided here I was able to use node successfully. However, as I attempt to install the "Formidable" node module, I get the following error: $npm install formidable bash: /usr/local/bin/npm:…
user109187
  • 1,651
52
votes
6 answers

Npm errors when installing packages on windows share

I have Ubuntu 12.10 running as a VMware guest on my Windows 8 host. I have shared a folder on my Windows 8 Host and it is mounted in the Ubuntu guest on startup using this entry in fstab: //myhost/work /work cifs…
F21
  • 4,349
51
votes
7 answers

node: command not found

I don't understand why the node command will not work, whereas nodejs works: $ node --version zsh: command not found: node $ nodejs --version v0.10.15 I tried apt-get install nodejs, but the latest version is already installed. And furthermore: $…
48
votes
5 answers

Can't install npm - Unable to correct problems, you have held broken packages?

I am trying to upgrade my nodejs to 7.6 but failed. Now I have a new problem after re-installing node 6.10: $ sudo apt-get purge nodejs npm Reading package lists... Done Building dependency tree Reading state information... Done Package 'npm'…
Run
  • 2,748
43
votes
9 answers

couldn't install npm on ubuntu

Tried to install nodejs and npm on ubuntu 12.04. I googled and did it. Now, I could not install npm on machine. sudo apt-get install npm Which gives me this The following packages have unmet dependencies: npm : Depends: nodejs but it is not going…
user3297351
  • 549
  • 1
  • 4
  • 7
29
votes
8 answers

Npm can't find module "semver" error in Ubuntu 19.04

I am getting the following error whenever I try to run npm command. internal/modules/cjs/loader.js:626 throw err; ^ Error: Cannot find module 'semver' Require stack: - /usr/share/npm/lib/utils/unsupported.js - /usr/share/npm/bin/npm-cli.js at…
27
votes
4 answers

NPM is incorrect version on latest Ubuntu (18.04) installation

Normal installation would be sudo apt install nodejs to install Node.js and then sudo apt install npm to install Node Package Manager. However, upon doing so, npm -v says 3.5.2. To upgrade normally, I would do sudo npm install -g npm, which updates…
22
votes
5 answers

How do you install less css command line compiler?

From my understanding and correct me if I'm wrong, I have to get ruby or NPM installed to get the less css compiler working. I don't have any ruby installed and I'm not really sure how to get my computer to that point. I also want to minimize my…
20
votes
4 answers

Install Node.js in Ubuntu 14.04

I installed Node.js with: sudo apt-get install nodejs But when I type in a console node I get nothing, no command not found, no any error. But when I type nodejs I get the Node.js prompt >. Now, I can't install anything with npm, I tried to install…
Gocht
  • 385
20
votes
3 answers

npm does not support Node.js v10.19.0

npm does not support Node.js v10.19.0 You should probably upgrade to a newer version of node as we can't make any promises that npm will work with this version. You can find the latest version at https://nodejs.org/
JoKalliauer
  • 1,674
  • 2
  • 20
  • 27
18
votes
1 answer

How to remove npm and reinstall npm completely in 18.04?

I was using ubuntu16.04 upgraded to ubuntu 18.04. followed some tutorial to remove npm, but now stuck. I have: ~$ npm list -g bash: /usr/bin/npm: No such file or directory and: sudo apt-get install npm Reading package lists... Done Building…
Aipo
  • 375
16
votes
6 answers

bower install does nothing, not even throw an error

I am on Ubuntu 14.04. I did sudo apt-get install npm. Then I did npm install -g bower, which was successful. With which npm, I get /usr/bin/npm/. With which bower, I get /usr/local/bin/bower. I cloned a github repository which had a bower.json. I…
corvid
  • 347
  • 2
  • 3
  • 11
16
votes
1 answer

Why does NPM install so many packages?

When deploying Node and NPM on Ubuntu 20.04 I noticed that when you run sudo apt install npm it details a massive number of dependencies that it want's to install with it. Why is this? Surely it doesn't require all these packages to run the package…
1
2 3
19 20