npm 已弃用警告——我需要更新一些东西吗? [英] npm deprecated warnings – do I need to update something?

查看:119
本文介绍了npm 已弃用警告——我需要更新一些东西吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在执行 npm install 以获取项目的依赖项后,我经常收到很多这样的消息:

After doing npm install to fetch a project's dependencies, I regularly get a lot messages like this:

npm WARN deprecated lodash@1.0.2: lodash@<2.0.0 不再维护.升级到 lodash@^3.0.0

显然我对 node 的理解不够好,无法得出我应该做什么——该项目甚至没有直接包含 lodash.

Obviously I don't understand node good enough to conclude what I should do – the project doesn't even include lodash directly.

我需要更新一些东西吗?还是包维护者的任务?

Do I need to update something on my side? Or is it the package maintainers task?

推荐答案

通常这是包维护者的任务.您可以在他们的 github 存储库上打开一个问题(如果它在 github 上),甚至更好的是发出更新内部依赖项的拉取请求.

In general that is the package maintainer's task. You could open an issue on their github repo (if it is on github) and even better would be to make a pull request with the internal dependencies updated.

这篇关于npm 已弃用警告——我需要更新一些东西吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆