Skip to content

Instantly share code, notes, and snippets.

@Hordern
Last active April 7, 2017 22:26
Show Gist options
  • Save Hordern/2045c1c271b2b4c5a695cb4a241245da to your computer and use it in GitHub Desktop.
Save Hordern/2045c1c271b2b4c5a695cb4a241245da to your computer and use it in GitHub Desktop.
Upgrade Angular2 to Angular4

/* This works on standard Angular2 project & Angular2Meteor project */ npm install @angular/{common,compiler,compiler-cli,core,forms,http,platform-browser,platform-browser-dynamic,platform-server,router,animations}@latest typescript@latest --save

/* Consider installing this tool.

  • npm-check-updates. It's the simplest way to upgrade all dependencies in your package.json. */

To install npm-check-updates: npm i -g npm-check-updates

To upgrade all dependencies: npm-check-updates -u

To install upgrading dependencies: npm install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment