我试图建立操作SDK如下所述:操作 - 苹果gactions将无法运行
https://developers.google.com/actions/develop/sdk/getting-started
我下载gactions在Mac的64位机。如果我尝试打开文件,它会以文本形式打开。当我含gactions的文件夹中,我尝试运行“gactions初始化”,并获得响应:
-bash:gactions:找不到
有什么想法的命令?
我试图建立操作SDK如下所述:操作 - 苹果gactions将无法运行
https://developers.google.com/actions/develop/sdk/getting-started
我下载gactions在Mac的64位机。如果我尝试打开文件,它会以文本形式打开。当我含gactions的文件夹中,我尝试运行“gactions初始化”,并获得响应:
-bash:gactions:找不到
有什么想法的命令?
试试这个:
$ cd folder_with_gactions $ chmod +x gactions
$ cd folder_with_gactions $ ./gactions init
另外,如果您尝试创建,您可能会发现本教程很有趣Google Home中的操作:How to create a custom private Google Home Action with API.AI and Google App Engine。在步骤8你可以找到一个gactions的例子。
如果您已经正确设置了google-cloud-sdk,那么您可以将gactions文件放入google-cloud-sdk/bin文件夹中。或者,您可以直接将bash路径添加到您拥有gactions的文件夹。
下载gactions
副本下载gactions并投入本地项目文件夹
,然后去到您的项目目录cd “项目目录”
运行以下命令:
$ chmod +x gactions
$ ./gactions init
它会创建action.json到该文件夹
您好,我没有这些具体步骤,但我仍然无法在我的终端或ITERM https://stackoverflow.com/questions/45039531/cant-install键入'gactions' -gactions-CLI –