npm WARN弃用lodash@2.4.2:lodash @< 3.0.0不再维护 [英] npm WARN deprecated lodash@2.4.2: lodash@<3.0.0 is no longer maintained
问题描述
使用npm全局安装grunt-cli时出现错误。它与lodash有关:
npm WARN弃用lodash@2.4.2:
lodash @< 3.0.0 is不再维护。升级到lodash@ ^ 3.0.0。
以下是我正在使用的版本,已安装的全局软件包列表。
node: v5.1.0 strong> npm: v3.5.0
npm list -g http://pastebin.com/NuJU3bY0
我试图安装最新版本的lodash(v3.10.1),但卸载grunt-cli全局程序包后我仍然收到错误,然后重新安装我的全局程序包。下面是安装日志:
sudo npm install lodash -g
/ usr / local / lib
└──lodash@3.10.1
sudo npm install grunt-cli -g
npm WARN弃用lodash@2.4.2:
lodash @< 3.0.0 is no更长的维护。升级到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在grunt-cli@0.1.13中用nopt替换nopt的捆绑版本@ 1.0.10
npm WARN在grunt-cli@0.1.13用findup-sync@0.1.3替换捆绑版本的findup-sync
npm WARN在grunt-cli@0.1.13替换捆绑版本以resolve@0.3.1
npm WARN解决grunt-cli@0.1.13用lodash@2.4.2替换lodash的捆绑版本
npm WARN在grunt-cli@0.1.13替换捆绑版本glob:glob@3.2.11
npm WARN在grunt-cli@0.1.13中用继承替换捆绑的继承版本@ 2 .0.1
npm WARN在grunt-cli@0.1.13中用minimatch@0.3.0替换minimatch的捆绑版本
npm WARN在grunt-cli@0.1.13中用sigmund@1.0替换sigmund的捆绑版本.1
npm WARN在grunt-cli@0.1.13用lru-cache@2.7.3替换lru-cache的捆绑版本
npm WARN在grunt-cli@0.1.13替换捆绑版本的abbrev with abbrev@1.0.7
有谁可以告诉我我做错了什么,或者如何解决这个错误,并得到一个干净的安装grunt-cli?
grunt-cli
依赖旧版本的lodash。它不应该影响咕噜声的功能;这只是一个警告信息。
所以,你没有做错任何事情,它不是一个错误信息,只是一个警告,你安装grunt-cli的方式应该可以正常工作。
I'm getting an error when using npm to install grunt-cli globally. It's related to lodash:
npm WARN deprecated lodash@2.4.2:
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
└── 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
Can anyone tell me what i'm doing wrong, or how to fix this error and get a clean install of grunt-cli?
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.
这篇关于npm WARN弃用lodash@2.4.2:lodash @< 3.0.0不再维护的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!