How to update each dependency in package.json to the latest version?

前端 未结 30 2904
清歌不尽
清歌不尽 2020-11-22 08:01

I copied package.json from another project and now want to bump all of the dependencies to their latest versions since this is a fresh project and I don\'t mind

30条回答
  •  醉酒成梦
    2020-11-22 08:10

    Updtr!

    Based on npm outdated, updtr installs the latest version and runs npm test for each dependency. If the test succeeds, updtr saves the new version number to your package.json. If the test fails, however, updtr rolls back its changes.

    https://github.com/peerigon/updtr

提交回复
热议问题