If you frequently update you dependencies in small batches, you will avoid large and painful updates later. Then again, if you don't have good tests coverage, it's hazardous to update dependencies at any time.
Delete any unwanted version constraints from your Gemfile and run:
bundle update
- Install npm-check-updates
- Run
npm outdated
and read CHANGELOGs of major updated packages before you update. You might not be ready for some updates. - Run these commands. Note, you may or may not want to remove your npm-shrinkwrap.json if you get some werid conflicts, and you may or may not need to
rm -rf
yournode_modules
directory.
cd client
rm npm-shrinkwrap.json
ncu -u -a
npm i
Some combinations that I often run:
ncu -u -a && rm -rf node_modules && npm i
Note: newer versions of npm (>3) automatically create a new version of the npm-shrinkwrap.json.