Firebase 函数预部署解析错误运行 lint
当我尝试部署 Firebase 函数时,出现解析错误。 我在 Windows 上使用 cmd,并使用 JavaScript 进行编码。 几天前,我在 Mac 上部署了 Functions 并且它有效,今天我想在 Windows 上做同样的事情。我在 Windows 上尝试过但不起作用后,我又在 mac 上尝试了它,但还是不起作用,即使以前可以用。
我尝试从“predeploy”更改 firebase.json:[ “npm --prefix“$RESOURCE_DIR”运行 lint” ] 到: “预部署”:[ “npm --prefix “%RESOURCE_DIR%”运行 lint” ]
但这也不起作用。
有人可以帮我吗? 提前致谢:)
When i try to deploy my Firebase Functions it gets an parse error.
I am using cmd on Windows and i am coding in JavaScript.
A couple of days ago i deployed my Functions on Mac and it worked, today i wanted to do the same thing on windows. After i tried it on Windows and it didn't worked, i tried it on mac again and it did not worked eather, even if it worked before.
I tried to change the firebase.json from "predeploy":[
"npm --prefix "$RESOURCE_DIR" run lint"
]
to:
"predeploy": [
"npm --prefix "%RESOURCE_DIR%" run lint"
]
but this was alos not working.
Can anybody help me out here?
Thanks in advance :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要更新 lint 文件以适应新的 ECMA 脚本。将
ecmaVersion
键值对添加到eslintrc.js
文件中。You need to update your lint file to account for the new ECMA script. Add the
ecmaVersion
key-value pair to youreslintrc.js
file.