【问题标题】:Can't resolve github Dependabot alert无法解决 github Dependabot 警报
【发布时间】:2020-09-25 16:54:55
【问题描述】:

我收到了这个安全通知:

Remediation
Upgrade node-fetch to version 2.6.1 or later. For example:

node-fetch@^2.6.1:
  version "2.6.1"

但是发生了这个错误。 :Dependabot cannot create a pull request as one or more other dependencies require a version that is incompatible with this update.

另外,我做了yarn upgrade 但没有任何改变。

这是什么??我该如何解决这个问题?

【问题讨论】:

    标签: github dependabot


    【解决方案1】:

    我自己已经多次看到这个问题,并且在herehere 中有很好的讨论。

    如果您使用的是npm,您可以尝试使用npm audit fix。如果您使用yarn,请试一试yarn upgrade --latest

    【讨论】:

    • 随着我不断更新代码,它消失了。谢谢。
    猜你喜欢
    • 2020-10-14
    • 2022-07-10
    • 1970-01-01
    • 2020-08-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多