npm WARN [email protected]需要firebase-admin@^5.12.0的对等节点,但未安装

npm WARN [email protected] requires a peer of firebase-admin@^5.12.0 but none is installed

在使用firebase-functions-test

时获取此消息

npm WARN [email protected] requires a peer of
firebase-admin@^5.12.0 but none is installed

我需要在package.json文件中进行哪些更改才能解决此消息

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
 "name":"functions",
 "description":"Cloud Functions for Firebase",
 "main":"build/index.js",
 "scripts": {...},
 "dependencies": {
   "firebase":"^5.4.2",
   "firebase-admin":"~6.0.0",
   "firebase-functions":"^2.0.5",
  },
 "devDependencies": {
   "firebase-functions-test":"^0.1.3",
   "prettier":"^1.13.7",
   "tslint":"~5.8.0",
   "tslint-config-prettier":"^1.15.0",
   "typescript":"~2.8.3",
  }
}

如果我将" firebase-admin":"?6.0.0"更改为" firebase-admin":" ^ 5.12.2

我得到这个

npm WARN [email protected] requires a peer of
firebase-admin@~6.0.0 but none is installed. You must install peer
dependencies yourself.

处理这些警告的正确方法是什么


遵循@DougStevenson建议,忽略此错误

It's probably OK to just ignore the warnings. I suspect that admin SDK
API didn't change so much in 6.0.0 that it would break
firebase-functions-test.