error: unknown option '--inspect-functions' return when adding --inspect-functions to firebase emulators:start
error: unknown option '--inspect-functions' return when adding --inspect-functions to firebase emulators:start
我不明白为什么当我将选项 --inspect-functions
传递给 firebase emulators:start
时,我收到一条错误消息 error: unknown option '--inspect-functions'
但是当我 运行 firebase emulators:start
使用任何选项时模拟器 运行 完美,所以
我有点难过,希望得到任何帮助。
这是我的 functions/package.json
:
{
"name": "functions",
"description": "Cloud Functions for Firebase",
"scripts": {
"lint": "eslint .",
"serve": "firebase serve --only functions",
"shell": "firebase functions:shell",
"start": "npm run shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log"
},
"engines": {
"node": "8"
},
"dependencies": {
"firebase-admin": "^8.6.0",
"firebase-functions": "^3.3.0",
"fs-extra": "^8.1.0",
"moment": "^2.24.0",
"pdfkit": "^0.11.0"
},
"devDependencies": {
"@google-cloud/functions-framework": "^1.3.2",
"eslint": "^5.12.0",
"eslint-plugin-promise": "^4.0.1",
"firebase-functions-test": "^0.1.6"
},
"private": true
}
您可能使用的是旧版本的 Firebase CLI。 --inspect-functions
直到最近才添加到版本 7.11.0 中,因此您应该更新:
npm install -g firebase-tools
我不明白为什么当我将选项 --inspect-functions
传递给 firebase emulators:start
时,我收到一条错误消息 error: unknown option '--inspect-functions'
但是当我 运行 firebase emulators:start
使用任何选项时模拟器 运行 完美,所以
我有点难过,希望得到任何帮助。
这是我的 functions/package.json
:
{
"name": "functions",
"description": "Cloud Functions for Firebase",
"scripts": {
"lint": "eslint .",
"serve": "firebase serve --only functions",
"shell": "firebase functions:shell",
"start": "npm run shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log"
},
"engines": {
"node": "8"
},
"dependencies": {
"firebase-admin": "^8.6.0",
"firebase-functions": "^3.3.0",
"fs-extra": "^8.1.0",
"moment": "^2.24.0",
"pdfkit": "^0.11.0"
},
"devDependencies": {
"@google-cloud/functions-framework": "^1.3.2",
"eslint": "^5.12.0",
"eslint-plugin-promise": "^4.0.1",
"firebase-functions-test": "^0.1.6"
},
"private": true
}
您可能使用的是旧版本的 Firebase CLI。 --inspect-functions
直到最近才添加到版本 7.11.0 中,因此您应该更新:
npm install -g firebase-tools