[英]Getting error when deploying functions in Firebase
Hello I am unable deo deploy a firebase app after upgrading to node 10.您好,升级到节点 10 后,我无法部署 firebase 应用程序。
This is the log output.这是日志 output。
What is wrong?怎么了?
I have upgraded firebase tools as well我也升级了 firebase 工具
10 silly lifecycle functions@~deploy: Args: [ '-c', 'firebase deploy --only functions' ]
11 silly lifecycle functions@~deploy: Returned: code: 1 signal: null
12 info lifecycle functions@~deploy: Failed to exec deploy script
13 verbose stack Error: functions@ deploy: `firebase deploy --only functions`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous>
(/usr/local/Cellar/nvm/0.35.3/versions/node/v10.0.0/lib/node_modules/npm/node_modules/npm-
lifecycle/index.js:285:16)
13 verbose stack at EventEmitter.emit (events.js:182:13)
13 verbose stack at ChildProcess.<anonymous>
(/usr/local/Cellar/nvm/0.35.3/versions/node/v10.0.0/lib/node_modules/npm/node_modules/npm-
lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:182:13)
13 verbose stack at maybeClose (internal/child_process.js:947:16)
13 verbose stack at Process.ChildProcess._handle.onexit
(internal/child_process.js:236:5)
14 verbose pkgid functions@
15 verbose cwd /Users/Sites/teambox-firebase/functions
16 verbose Darwin 17.7.0
17 verbose argv "/usr/local/Cellar/nvm/0.35.3/versions/node/v10.0.0/bin/node"
"/usr/local/opt/nvm/versions/node/v10.0.0/bin/npm" "run" "deploy"
18 verbose node v10.0.0
19 verbose npm v5.6.0
20 error code ELIFECYCLE
21 error errno 1
22 error functions@ deploy: `firebase deploy --only functions`
22 error Exit status 1
23 error Failed at the functions@ deploy script.
23 error This is probably not a problem with npm. There is likely additional logging output
above.
24 verbose exit [ 1, true ]
You are using a somewhat old version of node, or there is some misconfiguration.您使用的是有点旧版本的节点,或者存在一些错误配置。 It appears you are using nvm, so I would strongly suggest updating node with
nvm install 10
if you wish to stick to node 10. Be sure to close any open command shells and restart.看来您正在使用 nvm,因此如果您希望坚持使用节点 10,我强烈建议使用
nvm install 10
更新节点。请务必关闭所有打开的命令 shell 并重新启动。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.