代码之家  ›  专栏  ›  技术社区  ›  Or Assayag

NPM过期命令未显示完整列表

  •  4
  • Or Assayag  · 技术社区  · 4 年前

    npm outdated -g

    Package              Current  Wanted  Latest  Location
    create-next-app       10.0.3  10.0.4  10.0.4  global
    eslint-plugin-react   7.21.5  7.22.0  7.22.0  global
    firebase-tools         9.0.1   9.1.0   9.1.0  global
    

    在我安装了所有的软件包之后,我想确保我更新了所有的软件包,所以我再次点击,同样的命令,但是不小心点击了 npm outdated -g\

    Package                 Current  Wanted  Latest  Location
    eslint-plugin-flowtype    3.9.1  3.13.0   5.2.0  global
    

    我又打了 没有结果,用反斜杠重复,得到这个包。
    我查过了 this eslint-plugin-flowtype npm过期-g

    谢谢。

    1 回复  |  直到 4 年前
        1
  •  1
  •   Yair Cohen    4 年前

    如图所示 docs npm outdated 默认深度为0,因此除非重写该值,否则始终只能看到过时的顶级依赖项。你可以像这样跑 npm outdated --depth 9999 去看所有的人。

    推荐文章