Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npm WARN deprecated [email protected]: lodash@<3.0.0 is no longer maintained

I'm getting an error when using npm to install grunt-cli globally. It's related to lodash:

npm WARN deprecated [email protected]:
lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^3.0.0.

Here are the versions i'm using, and the list of global packages installed.

node: v5.1.0

npm: v3.5.0

npm list -g: http://pastebin.com/NuJU3bY0


I've attempted to install the latest version of lodash (v3.10.1) globally, but I still got the error again after uninstalling my grunt-cli global package, and then re-installing my global package. Below is the installation log:

sudo npm install lodash -g
/usr/local/lib
└── [email protected]

sudo npm install grunt-cli -g
npm WARN deprecated [email protected]: 
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
└─┬ [email protected]
  ├─┬ [email protected]
  │ ├─┬ [email protected]
  │ │ ├── [email protected]
  │ │ └─┬ [email protected]
  │ │   ├── [email protected]
  │ │   └── [email protected]
  │ └── [email protected]
  ├─┬ [email protected]
  │ └── [email protected]
  └── [email protected]

npm WARN In [email protected] replacing bundled version of nopt with [email protected]
npm WARN In [email protected] replacing bundled version of findup-sync with [email protected]
npm WARN In [email protected] replacing bundled version of resolve with [email protected]
npm WARN In [email protected] replacing bundled version of lodash with [email protected]
npm WARN In [email protected] replacing bundled version of glob with [email protected]
npm WARN In [email protected] replacing bundled version of inherits with [email protected]
npm WARN In [email protected] replacing bundled version of minimatch with [email protected]
npm WARN In [email protected] replacing bundled version of sigmund with [email protected]
npm WARN In [email protected] replacing bundled version of lru-cache with [email protected]
npm WARN In [email protected] replacing bundled version of abbrev with [email protected]

Can anyone tell me what i'm doing wrong, or how to fix this error and get a clean install of grunt-cli?

like image 448
Mastrianni Avatar asked Nov 28 '15 17:11

Mastrianni


1 Answers

The packagegrunt-cli relies on a older version of lodash. It shouldn't affect the functionality of grunt; it's just a warning message.

So, you're doing nothing wrong, it's not an error message, just a warning, and the way you've installed grunt-cli should work fine.

like image 166
Tennyson H Avatar answered Nov 11 '22 11:11

Tennyson H