Error con la installation de npm

Estoy tratando de configurar un nodo en mi máquina … instalé npm y grunt-cli con -g en la raíz y cuando ejecuto la installation de npm dentro de mi directory de código aparece el siguiente error

sudo npm install npm WARN prefer global grunt-cli@0.1.13 should be installed with -g npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-browserify/node_modules/watchify/node_modules/browserify requires resolve@'~0.7.1' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-browserify/node_modules/resolve, npm WARN unmet dependency which is version 1.0.0 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-browserify/node_modules/watchify/node_modules/browserify requires through2@'^1.0.0' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-browserify/node_modules/watchify/node_modules/through2, npm WARN unmet dependency which is version 0.5.1 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/bower-config requires mout@'~0.9.0' but will load npm WARN unmet dependency undefined, npm WARN unmet dependency which is version undefined npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/bower-json requires graceful-fs@'~2.0.0' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/graceful-fs, npm WARN unmet dependency which is version 3.0.5 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/bower-registry-client requires async@'~0.2.8' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/async, npm WARN unmet dependency which is version 0.1.22 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/bower-registry-client requires graceful-fs@'~2.0.0' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/graceful-fs, npm WARN unmet dependency which is version 3.0.5 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/bower-registry-client requires lru-cache@'~2.3.0' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/lru-cache, npm WARN unmet dependency which is version 2.5.0 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/bower-registry-client requires request@'~2.27.0' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/request, npm WARN unmet dependency which is version 2.42.0 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/bower-registry-client requires mkdirp@'~0.3.5' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/mkdirp, npm WARN unmet dependency which is version 0.5.0 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/decompress-zip requires nopt@'~2.2.0' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/nopt, npm WARN unmet dependency which is version 3.0.1 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/inquirer requires lodash@'~2.4.1' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/lodash, npm WARN unmet dependency which is version 0.10.0 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/insight requires async@'^0.9.0' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/async, npm WARN unmet dependency which is version 0.1.22 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/insight requires chalk@'^0.5.1' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/chalk, npm WARN unmet dependency which is version 0.5.0 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/insight requires inquirer@'^0.6.0' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/inquirer, npm WARN unmet dependency which is version 0.7.1 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bowercopy/node_modules/bower/node_modules/bower-json requires graceful-fs@'~2.0.0' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bowercopy/node_modules/bower/node_modules/graceful-fs, npm WARN unmet dependency which is version 3.0.5 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bowercopy/node_modules/bower/node_modules/bower-registry-client requires graceful-fs@'~2.0.0' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bowercopy/node_modules/bower/node_modules/graceful-fs, npm WARN unmet dependency which is version 3.0.5 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bowercopy/node_modules/bower/node_modules/bower-registry-client requires lru-cache@'~2.3.0' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bowercopy/node_modules/bower/node_modules/lru-cache, npm WARN unmet dependency which is version 2.5.0 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bowercopy/node_modules/bower/node_modules/bower-registry-client requires request@'~2.27.0' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bowercopy/node_modules/bower/node_modules/request, npm WARN unmet dependency which is version 2.42.0 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bowercopy/node_modules/bower/node_modules/bower-registry-client requires mkdirp@'~0.3.5' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bowercopy/node_modules/bower/node_modules/mkdirp, npm WARN unmet dependency which is version 0.5.0 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bowercopy/node_modules/bower/node_modules/decompress-zip requires nopt@'~2.2.0' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bowercopy/node_modules/bower/node_modules/nopt, npm WARN unmet dependency which is version 3.0.1 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bowercopy/node_modules/bower/node_modules/insight requires chalk@'^0.5.1' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bowercopy/node_modules/bower/node_modules/chalk, npm WARN unmet dependency which is version 0.5.0 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bowercopy/node_modules/bower/node_modules/insight requires inquirer@'^0.6.0' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bowercopy/node_modules/bower/node_modules/inquirer, npm WARN unmet dependency which is version 0.7.1 bhavan@bhavan-Inspiron-N5010:~/oyo/website$ sudo npm install npm WARN prefer global grunt-cli@0.1.13 should be installed with -g npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-browserify/node_modules/watchify/node_modules/browserify requires resolve@'~0.7.1' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-browserify/node_modules/resolve, npm WARN unmet dependency which is version 1.0.0 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-browserify/node_modules/watchify/node_modules/browserify requires through2@'^1.0.0' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-browserify/node_modules/watchify/node_modules/through2, npm WARN unmet dependency which is version 0.5.1 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/bower-config requires mout@'~0.9.0' but will load npm WARN unmet dependency undefined, npm WARN unmet dependency which is version undefined npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/bower-json requires graceful-fs@'~2.0.0' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/graceful-fs, npm WARN unmet dependency which is version 3.0.5 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/bower-registry-client requires async@'~0.2.8' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/async, npm WARN unmet dependency which is version 0.1.22 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/bower-registry-client requires graceful-fs@'~2.0.0' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/graceful-fs, npm WARN unmet dependency which is version 3.0.5 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/bower-registry-client requires lru-cache@'~2.3.0' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/lru-cache, npm WARN unmet dependency which is version 2.5.0 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/bower-registry-client requires request@'~2.27.0' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/request, npm WARN unmet dependency which is version 2.42.0 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/bower-registry-client requires mkdirp@'~0.3.5' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/mkdirp, npm WARN unmet dependency which is version 0.5.0 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/decompress-zip requires nopt@'~2.2.0' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/nopt, npm WARN unmet dependency which is version 3.0.1 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/inquirer requires lodash@'~2.4.1' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/lodash, npm WARN unmet dependency which is version 0.10.0 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/insight requires async@'^0.9.0' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/async, npm WARN unmet dependency which is version 0.1.22 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/insight requires chalk@'^0.5.1' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/chalk, npm WARN unmet dependency which is version 0.5.0 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/insight requires inquirer@'^0.6.0' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bower-task/node_modules/bower/node_modules/inquirer, npm WARN unmet dependency which is version 0.7.1 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bowercopy/node_modules/bower/node_modules/bower-json requires graceful-fs@'~2.0.0' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bowercopy/node_modules/bower/node_modules/graceful-fs, npm WARN unmet dependency which is version 3.0.5 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bowercopy/node_modules/bower/node_modules/bower-registry-client requires graceful-fs@'~2.0.0' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bowercopy/node_modules/bower/node_modules/graceful-fs, npm WARN unmet dependency which is version 3.0.5 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bowercopy/node_modules/bower/node_modules/bower-registry-client requires lru-cache@'~2.3.0' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bowercopy/node_modules/bower/node_modules/lru-cache, npm WARN unmet dependency which is version 2.5.0 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bowercopy/node_modules/bower/node_modules/bower-registry-client requires request@'~2.27.0' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bowercopy/node_modules/bower/node_modules/request, npm WARN unmet dependency which is version 2.42.0 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bowercopy/node_modules/bower/node_modules/bower-registry-client requires mkdirp@'~0.3.5' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bowercopy/node_modules/bower/node_modules/mkdirp, npm WARN unmet dependency which is version 0.5.0 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bowercopy/node_modules/bower/node_modules/decompress-zip requires nopt@'~2.2.0' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bowercopy/node_modules/bower/node_modules/nopt, npm WARN unmet dependency which is version 3.0.1 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bowercopy/node_modules/bower/node_modules/insight requires chalk@'^0.5.1' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bowercopy/node_modules/bower/node_modules/chalk, npm WARN unmet dependency which is version 0.5.0 npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bowercopy/node_modules/bower/node_modules/insight requires inquirer@'^0.6.0' but will load npm WARN unmet dependency /home/bhavan/oyo/website/node_modules/grunt-bowercopy/node_modules/bower/node_modules/inquirer, npm WARN unmet dependency which is version 0.7.1 er code here 

One Solution collect form web for “Error con la installation de npm”

En mi sistema, esto fue el resultado de un package instalado incorrectamente (la installation fue abortada a mitad de path).

En mi caso, todas las npm WARN unmet dependency /path/node_modules/package/ messages se referían al mismo package, así que borré ese package de mi directory node_modules y lo reinstalé. Esto resolvió todos los problemas que estaba teniendo. (npm lanzó este error incluso cuando intentaba instalar packages que no dependían del package problemático, y esto aún resolvió el problema)

En su caso, se enumeran varios packages, por lo que:

  • Elimine su directory de modules de nodo

     rm -r node-modules 
  • Reinstale sus packages

     npm install 
  • Si el package que intentó instalar aún no está instalado, vuelva a instalarlo.

     npm install --save package 

Para otros que se enfrentan a este problema, si el package que intentas instalar es global, es posible que debas eliminar tu directory global node_modules . npm ls -g --depth 0 le dirá la location de su directory global node_modules y le dará una list de los packages instalados. Tome nota de estos porque necesitará reinstalarlos manualmente.

  • ¿Qué IDE usar para Javascript en Ubuntu 11.04?
  • Instalación de Node.js: openssl no instalado
  • contar líneas lógicas de código en Ubuntu
  • Error al agregar Android Platform en el marco Ionic en ubuntu
  • `npm install` termina con" Killed "
  • Node.js npm install express no pudo recuperar del logging
  • La installation de los resultados del module npm en el command no encontrado
  • nodejs vs node en ubuntu 12.04
  • Javascript tiene muchos buenos JS marco (como Node.js AngularJS Vue.js React.js) es el mejor lenguaje de script.