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

前端 未结 30 3297
清歌不尽
清歌不尽 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:32

    I solved this by seeing the instructions from https://github.com/tjunnone/npm-check-updates

    $ npm install -g npm-check-updates
    $ ncu
    $ ncu -u # to update all the dependencies to latest
    $ ncu -u "specific module name"  #in case you want to update specific dependencies to latest
    

提交回复
热议问题