【问题标题】:npm-check-updates (npm ncu): avoid breaking updatesnpm-check-updates (npm ncu):避免中断更新
【发布时间】:2021-07-27 05:59:36
【问题描述】:

命令npm-check-update 以红色显示市长更新。这可以在first image of the documentaton 中看到。 但是有没有办法从自动更新中排除这些重大更改?我没有找到那个参数。

【问题讨论】:

    标签: node.js npm npm-update


    【解决方案1】:

    就我而言:

    ncu -u -x axios,eslint,eslint-plugin-prettier,eslint-plugin-vue,sass-loader,@tinymce/tinymce-vue,vue-browser-detect-plugin
    

    “-x”之后的所有依赖项对我来说都是重大升级。

    【讨论】:

    • 您的答案可以通过额外的支持信息得到改进。请edit 添加更多详细信息,例如引用或文档,以便其他人可以确认您的答案是正确的。你可以找到更多关于如何写好答案的信息in the help center
    猜你喜欢
    • 2021-10-29
    • 2017-06-11
    • 2019-11-25
    • 2019-07-24
    • 2021-12-22
    • 1970-01-01
    • 2018-06-14
    • 2020-11-07
    • 2020-01-11
    相关资源
    最近更新 更多