1. D:\ Firebase> npm install firebase-functions @ latest firebase-admin @ latest --save
[email protected] postinstall D:\ Firebase \ node_modules \ firebase-functions
节点./upgrade-warning
======== WARNING! ========
This upgrade of firebase-functions contains breaking changes if you are upgrading from a version below v1.0.0.
To see a complete list of these breaking changes, please go to:
https://firebase.google.com/docs/functions/beta-v1-diff
npm WARN saveError ENOENT: no such file or directory, open 'D:\Firebase\package.json'
- [email protected] node_modules\compressible\node_modules\mime-db
- [email protected] node_modules\request\node_modules\mime-db
- [email protected] node_modules\request\node_modules\mime-types
D:\Firebase
+-- [email protected]
| +-- @google-cloud/[email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | `-- [email protected]
| `-- @types/[email protected]
`-- [email protected]
npm WARN enoent ENOENT: no such file or directory, open 'D:\Firebase\package.json'
npm WARN Firebase No description
npm WARN Firebase No repository field.
npm WARN Firebase No README data
npm WARN Firebase No license field.
[email protected] postinstall D:\ Firebase \ functions \ node_modules \ firebase-functions node ./upgrade-warning
======== WARNING! ========
This upgrade of firebase-functions contains breaking changes if you are upgrading from a version below v1.0.0.
To see a complete list of these breaking changes, please go to:
https://firebase.google.com/docs/functions/beta-v1-diff
functions@ D:\Firebase\functions
+-- UNMET PEER DEPENDENCY [email protected]
`-- [email protected]
npm WARN [email protected] requires a peer of firebase-admin@~6.0.0 but none was installed.
~
如何从[email protected]更新到[email protected]?
非常感谢。
要获取Cloud Functions项目的任何npm模块的最新版本:
cd functions
npm install firebase-admin@latest