Failed at the apiai-webhook-template-nodejs@0.0.1 start script 'functions deploy yourAction --trigger-http'.
See original GitHub issuei followed the step that in detail page, but when run gcloud app deploy, it throw below error trace:
Updating service [default]…failed.
ERROR: (gcloud.app.deploy) Error Response: [9]
Application startup error:
apiai-webhook-template-nodejs@0.0.1 start /app functions deploy yourAction --trigger-http
sh: 1: functions: not found
npm ERR! Linux 3.16.0-4-amd64
npm ERR! argv “/nodejs/bin/node” “/nodejs/bin/npm” “start”
npm ERR! node v6.0.0
npm ERR! npm v3.8.6
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! apiai-webhook-template-nodejs@0.0.1 start: functions deploy yourAction --trigger-http
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the apiai-webhook-template-nodejs@0.0.1 start script ‘functions deploy yourAction --trigger-http’.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the apiai-webhook-template-nodejs package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! functions deploy yourAction --trigger-http
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs apiai-webhook-template-nodejs
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls apiai-webhook-template-nodejs
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request: npm ERR! /app/npm-debug.log
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:5 (1 by maintainers)
Top GitHub Comments
We have recently updated almost all the samples to use Firebase Functions since we determined that it is the easiest and free webhook deployment service to use currently.
Try deploying the updated sample code using the updated readme.
Feel free to open another issue if you encounter any difficulties.
I’ve figured out what is going on here. The instructions at the following link are out of date (at the time of writing): https://developers.google.com/actions/samples/ The instructions say to use “gcloud app deploy”, but the sample have all been moved to a different GCP service - Basically “gcloud beta functions” is the key - as you will see in the package.json files.
Confusing and annoying - Yes!
Also, I hear that Google are moving all the samples (again) to Firebase, as currently outlined in the ‘Getting Started’ page here: https://developers.google.com/actions/get-started/deploy-fulfillment
So there is that 3rd option, and where we should all be aiming going forward it seems…
I hope this helps someone.