2

I updated to angularfire2 4.0, how can I rollback to the previous version as many of my application work on angularfire2 2.0 and I want to stick to it.

ksmaurya
  • 91
  • 1
  • 2
  • 10

2 Answers2

2

The fastest and easiest way is by specifying the version in the command itself.

Command

npm install angularfire2@2.0.0-alpha.17 --save

How NPM works with versions

By adding @2.0.0-alpha.17 to the package name you tell NPM to install version 2.0.0-alpha.17. And by adding the flag --save, you tell NPM to also save this version to your package.json.

How to view previous package versions?

You can can ask NPM to show you a list of previous versions/releases by using the command:

npm view angularfire2 versions
Community
  • 1
  • 1
Companjo
  • 1,789
  • 18
  • 24
1

Explicitly add the version you want to your package.json and do npm install

npm install the exact package version specified in package.json

Andreas Gassmann
  • 6,334
  • 7
  • 32
  • 45