Can't install with npm
moemen opened this issue · comments
Moamen Hmad commented
I have tried to install node-which
on ubuntu 14.04. npm v3.10.6. node v6.8.1. But it always fails because it's no on npm registery!
Here is the logs:
vagrant@vagrant-ubuntu-trusty-64:~$ npm install node-which
npm ERR! Linux 3.13.0-92-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "node-which"
npm ERR! node v6.8.1
npm ERR! npm v3.10.6
npm ERR! code E404
npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/node-which
npm ERR! 404
npm ERR! 404 'node-which' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! Please include the following file with any support request:
npm ERR! /home/vagrant/npm-debug.log
shinnn commented
This module is published as which
, not node-which
.
Moamen Hmad commented
This issue happen when installing npm from apt like sudo apt-get install npm
.
The following packages have unmet dependencies:
npm : Depends: nodejs but it is not going to be installed
Depends: nodejs-dev
Depends: node-request but it is not going to be installed
Depends: node-mkdirp but it is not going to be installed
Depends: node-minimatch but it is not going to be installed
Depends: node-semver but it is not going to be installed
Depends: node-ini but it is not going to be installed
Depends: node-graceful-fs but it is not going to be installed
Depends: node-abbrev but it is not going to be installed
Depends: node-nopt but it is not going to be installed
Depends: node-fstream but it is not going to be installed
Depends: node-rimraf but it is not going to be installed
Depends: node-tar 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.
isaacs commented
The npm package is just called which
, not node-which
.