Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一些使用 SDK v3 的 firebase 应用程序,还有一些仍在 SDK v2 上。为了将应用程序部署到 Firebase 托管,我必须不断在两个版本的 firebase-tools 之间切换。有没有办法同时运行两个版本的 CLI?
我已切换到使用 3.x 版本的 Firebase 工具作为我的全球版本:npm install firebase-tools -g.
npm install firebase-tools -g
然后对于我的遗留项目,我现在将 firebase-tools 版本保存在本地目录中,所以npm install firebase-tools@2.2.1. 在这种情况下,您可能必须使用它来运行它node_modules/firebase-tools/bin/firebase,因为全局版本优先。
npm install firebase-tools@2.2.1
node_modules/firebase-tools/bin/firebase