with the started serve node mac grunt getting cli node.js gruntjs npm lodash grunt-cli

node.js - the - npm WARN obsoleto lodash@2.4.2: lodash @<3.0.0 ya no se mantiene



npm grunt (2)

El paquete grunt-cli basa en una versión anterior de lodash. No debería afectar la funcionalidad del gruñido; Es solo un mensaje de advertencia.

Entonces, no está haciendo nada mal, no es un mensaje de error, solo una advertencia, y la forma en que instaló grunt-cli debería funcionar bien.

Recibo un error cuando uso npm para instalar grunt-cli globalmente. Está relacionado con lodash:

npm WARN deprecated lodash@2.4.2: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^3.0.0.

Aquí están las versiones que estoy usando y la lista de paquetes globales instalados.

nodo: v5.1.0

npm: v3.5.0

lista de npm -g: http://pastebin.com/NuJU3bY0

Intenté instalar la última versión de lodash (v3.10.1) a nivel mundial, pero aún recibí el error nuevamente después de desinstalar mi paquete global grunt-cli y luego reinstalar mi paquete global. A continuación se muestra el registro de instalación:

sudo npm install lodash -g /usr/local/lib └── lodash@3.10.1 sudo npm install grunt-cli -g npm WARN deprecated lodash@2.4.2: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^3.0.0. /usr/local/bin/grunt -> /usr/local/lib/node_modules/grunt-cli/bin/grunt /usr/local/lib └─┬ grunt-cli@0.1.13 ├─┬ findup-sync@0.1.3 │ ├─┬ glob@3.2.11 │ │ ├── inherits@2.0.1 │ │ └─┬ minimatch@0.3.0 │ │ ├── lru-cache@2.7.3 │ │ └── sigmund@1.0.1 │ └── lodash@2.4.2 ├─┬ nopt@1.0.10 │ └── abbrev@1.0.7 └── resolve@0.3.1 npm WARN In grunt-cli@0.1.13 replacing bundled version of nopt with nopt@1.0.10 npm WARN In grunt-cli@0.1.13 replacing bundled version of findup-sync with findup-sync@0.1.3 npm WARN In grunt-cli@0.1.13 replacing bundled version of resolve with resolve@0.3.1 npm WARN In grunt-cli@0.1.13 replacing bundled version of lodash with lodash@2.4.2 npm WARN In grunt-cli@0.1.13 replacing bundled version of glob with glob@3.2.11 npm WARN In grunt-cli@0.1.13 replacing bundled version of inherits with inherits@2.0.1 npm WARN In grunt-cli@0.1.13 replacing bundled version of minimatch with minimatch@0.3.0 npm WARN In grunt-cli@0.1.13 replacing bundled version of sigmund with sigmund@1.0.1 npm WARN In grunt-cli@0.1.13 replacing bundled version of lru-cache with lru-cache@2.7.3 npm WARN In grunt-cli@0.1.13 replacing bundled version of abbrev with abbrev@1.0.7

¿Alguien puede decirme qué estoy haciendo mal, o cómo solucionar este error y obtener una instalación limpia de grunt-cli?


Puedes intentar ejecutar este comando en tu consola:

npm i -g lodash

Déjame saber si esto lo arregla.