manekinekko / google-actions-starter

A Node.js server for Google Assistant (and Google Home).

Home Page:https://manekinekko.github.io/google-actions-starter/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Super excited about this! Trying to get it working and receiving an error on Preview

davelutz opened this issue · comments

Installed, updated execution URL and ran step 4 and encountered this error. (npm start works, but npm run simulator presents a similar error to the below)...

DebianLinux:~/node/google-actions-starter$ npm run preview

> @manekinekko/google-actions-starter@1.0.0 preview /home/node/google-actions-starter
> gactions --verbose preview --action_package action.json --invocation_name 'my first action' --preview_mins 1234

/home/node/google-actions-starter/node_modules/.bin/gactions: 1: /home/node/google-actions-starter/node_modules/.bin/gactions: Syntax error: end of file unexpected (expecting ")")

npm ERR! Linux 3.16.0-4-amd64
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "preview"
npm ERR! node v6.9.1
npm ERR! npm  v3.10.9
npm ERR! code ELIFECYCLE
npm ERR! @manekinekko/google-actions-starter@1.0.0 preview: `gactions --verbose preview --action_package action.json --invocation_name 'my first action' --preview_mins 1234`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @manekinekko/google-actions-starter@1.0.0 preview script 'gactions --verbose preview --action_package action.json --invocation_name 'my first action' --preview_mins 1234'.

This issue seems to be related to the gactions binary. Can you try this version instead and let me know:
https://developers.google.com/actions/tools/gactions-cli

Using that version of gactions fixed it and i was able to get the URL and Google code. Thanks