Appwrite init 函数返回“Error ENOENT”

发布于 2025-01-15 08:29:46 字数 511 浏览 4 评论 0原文

我正在尝试使用 Appwrite 函数设置 cron 作业。 我已经设置了 appwrite cli,其他一切都工作正常,但是当我尝试使用“appwrite init 函数”创建函数时,出现错误,指示我打开我的计算机上不存在的 readme.md 文件。 appwrite init function image

问题是,当我在 Chrome 上打开我的 appwrite(backend) 帐户时,我看到了我尝试使用 cli 创建的函数。

backend

请问有什么帮助吗?

I am trying to set up a cron job using Appwrite functions.
I already setup appwrite cli and every other thing works fine but when I try to create a function using "appwrite init function", I get an error directing me to open up a readme.md file that does not exist on my computer.
appwrite init function image

The thing is, when I open up my appwrite(backend) account on Chrome, I see the function I tried creating using cli.

backend

Any help, please?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

烛影斜 2025-01-22 08:29:46

Appwrite 维护者在这里。我们已经意识到这个问题,并正在努力解决这个问题,如 github 问题 https ://github.com/appwrite/sdk-for-cli/issues/30

作为临时解决方法,请使用 WSL。

Appwrite maintainer here. We're aware of this issue and working on it as mentioned in out github issue https://github.com/appwrite/sdk-for-cli/issues/30

As a temporary workaround please use WSL.

ぶ宁プ宁ぶ 2025-01-22 08:29:46

这是您在Windows上开发时遇到的问题,我建议您使用WSL2进行appwrite功能开发。请按照此处的步骤在 Windows 上安装 wsl2

安装后,使用 linux 安装脚本安装 appwrite cli

curl -sL https://appwrite.io/cli/install.sh | bash

确保安装后登录,然后可以初始化项目并创建函数。

一切都很适合我。

This is a problem you encounter when developing on windows,I suggest using WSL2 for your appwrite function development. Follow the steps here to Install wsl2 on windows

After istallation, install appwrite cli with the linux install script

curl -sL https://appwrite.io/cli/install.sh | bash

Make sure you login after installation, you can then initialize your project and create your function.

everthing works perfectly for me.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文