Upgrading NPM packages - Paprikas/rails_cheat_sheet GitHub Wiki

  1. Use yarn upgrade-interactive to upgrade interactively. Use --latest flag to ignore specific ranges in package file. https://classic.yarnpkg.com/lang/en/docs/cli/upgrade-interactive/
  2. Use npm outdated to bump major versions
  3. Run yarn to install new versions

More info https://www.carlrippon.com/upgrading-npm-dependencies/