如何从[email protected]更新到[email protected]

问题描述 投票:2回答:1

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.
  1. D:\ Firebase \ functions> npm install --save firebase-functions @ latest

[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.

~

  1. 我检查“package.json” “dependencies”:{“firebase-admin”:“~5.12.0”,“firebase-functions”:“^ 2.0.5”},

如何从[email protected]更新到[email protected]

非常感谢。

firebase npm google-cloud-functions firebase-admin
1个回答
7
投票

要获取Cloud Functions项目的任何npm模块的最新版本:

cd functions
npm install firebase-admin@latest
© www.soinside.com 2019 - 2024. All rights reserved.