当我使用旧的 Angularfire2 版本的语法时,我遇到了错误,因为我安装了最新版本(AngularFire2 版本 4.0.0)。因此,我不想更新我的知识,而是宁愿降级到较低版本(angularfire2 版本 2.0.0),这样我的程序就能正常工作。我该怎么做?
最佳答案
您可以卸载旧版本的 angularfire2
。
npm uninstall angularfire2 --save
要安装任何特定版本,请使用@
。
npm install <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="eb8a858c9e878a998d82998ed9abd9c5dbc5db" rel="noreferrer noopener nofollow">[email protected]</a> --save
save
选项将其设置在 package.json
关于angular - 现在我有最新的 angularfire2 版本。如何降级到以前的版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44536132/