npm-check-updates (npm ncu): avoid breaking updates

2.6k views Asked by At

The command npm-check-update displays mayor updates in red. This can be already seen in the first image of the documentaton. But is there a way to exclude these breaking changes from the automatic update? I do not find a parameter for that.

2

There are 2 answers

0
Renxing Liu On

It is actually in the readme file: enter image description here

So, just do a ncu -t minor -u to leave major version updates out (those that are most likely to break things).

1
steeve55 On

For my part I do :

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

All dependencies after "-x" are major upgrade for me.