Dev*_*dow 7 node.js firebase google-cloud-functions
每次部署firebase函数时,都会在日志中为每个函数获取此信息:
(节点:2)警告:检测到可能的EventEmitter内存泄漏。添加了11个错误侦听器。使用generator.setMaxListeners()增加限制
我的节点版本是 v8.1.3
这是我的package.json
{
"name": "functions",
"scripts": {
"build": "./node_modules/.bin/tslint -p tslint.json && ./node_modules/.bin/tsc",
"serve": "npm run build && firebase serve --only functions",
"shell": "npm run build && firebase experimental:functions:shell",
"start": "npm run shell",
"deploy": "firebase deploy --non-interactive --token $FIREBASE_DEPLOY_KEY",
"logs": "firebase functions:log"
},
"main": "lib/index.js",
"dependencies": {
"@google-cloud/storage": "^1.6.0",
"@google-cloud/vision": "^0.15.2",
"@sendgrid/mail": "^6.2.1",
"@types/algoliasearch": "^3.24.9",
"algoliasearch": "^3.24.9",
"child-process-promise": "^2.2.1",
"express": "^4.16.2",
"firebase-admin": "^5.8.1",
"firebase-functions": "^0.8.1",
"jsonwebtoken": "^8.1.1",
"lodash": "^4.17.5",
"piexifjs": "^1.0.3",
"rand-token": "^0.4.0",
"raven": "^2.4.0",
"raven-js": "^3.22.1",
"request": "^2.83.0"
},
"devDependencies": {
"tslint": "^5.8.0",
"typescript": "^2.5.3"
},
"private": true
}
Run Code Online (Sandbox Code Playgroud)
我所有的功能都可以正常工作,但是它接近生产时间,而且我不喜欢这种外观,有人知道它的含义吗?
| 归档时间: |
|
| 查看次数: |
854 次 |
| 最近记录: |