找不到HTTPS功能.使用firebase函数:shell [英] No HTTPS functions found. Use firebase functions:shell

查看:51
本文介绍了找不到HTTPS功能.使用firebase函数:shell的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在努力使我的功能在本地运行,但是我不知道为什么它总是说我没有功能.我使用的是打字稿,所以我在functions文件夹中运行了 tsc ,然后又运行了 sudo firebase serve --only functions ,但出现此错误:

I've been trying all day to get my functions to run locally but I don't know why it keeps saying I have no functions. I'm using typescript, so I ran tsc in the functions folder, then ran sudo firebase serve --only functions, but I get this error:

i  functions: No HTTPS functions found. 
Use firebase functions:shell if you would like to emulate other types of functions.

我尝试在没有 sudo 的情况下提供该功能,但出现权限问题:

I tried serving the function without sudo but I get permission issues:

推荐答案

好吧,我不知道为什么它起作用,但是我只是重新启动了VSCode(因为它有一个更新),现在一切正常.

Ok, I don't know why it worked, but I just restarted VSCode (because it had an update) and everything works now.

这篇关于找不到HTTPS功能.使用firebase函数:shell的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆