Google上的操作-Mac gactions无法运行 [英] Actions on Google - Mac gactions won't run

查看:96
本文介绍了Google上的操作-Mac gactions无法运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试按照此处所述设置Actions sdk:

I am trying to set up the Actions sdk as described here:

https://developers.google.com/actions/sdk

我为Mac 64位计算机下载了gactions。如果我尝试打开文件,它将以文本形式打开。当我进入包含gactions的文件夹时,我尝试运行 gactions init 并获取响应:

I downloaded gactions for a Mac 64-bit machine. If I try to open the file, it opens as text. When I am in the folder containing gactions, I try to run gactions init and get the response:


-bash:gactions:未找到命令

-bash: gactions: command not found

有什么想法吗?

推荐答案

尝试一下:


  • gaction CLI

  • 在Mac和Linux上,使二进制可执行文件从终端运行:

    $ cd folder_with_gactions
    $ chmod + x gactions

  • 执行gactions

    $ cd folder_with_gactions
    $ ./gactions init

  • Download Google gactions cli from gaction CLI
  • On Mac and Linux, to make the binary executable run from terminal: $ cd folder_with_gactions $ chmod +x gactions
  • Execute gactions $ cd folder_with_gactions $ ./gactions init

此外,如果您尝试在Google Home中创建操作,您可能会发现本教程很有趣:如何创建一个自定义私有的带有API.AI和Google App Engine的Google Home Action 。在 第8步 中,您可以找到gaction的示例。

Also, you may find this tutorial interesting if you are trying to create an action in Google Home : How to create a custom private Google Home Action with API.AI and Google App Engine. In STEP 8 you can find an example of gactions.

这篇关于Google上的操作-Mac gactions无法运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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