question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed at the apiai-webhook-template-nodejs@0.0.1 start script 'functions deploy yourAction --trigger-http'.

See original GitHub issue

i 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:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Canaincommented, Jun 29, 2017

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.

0reactions
peternanncommented, Jun 27, 2017

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deployment of function for TS failure #303 - GitHub
When using Typescript to build and deploy a function, if the target dir/file is in the gitignore, then the deployment fails.
Read more >
google cloud function deploy start failing - Stack Overflow
I used to work same script 1 hour ago, but now- no one in the team is able to deploy cloud functions and...
Read more >
Troubleshooting Cloud Functions - Google Cloud
Function deployment fails while executing function's global scope. This error indicates that there was a problem with your code. The deployment pipeline ...
Read more >
Preparing apps for actions - IBM Cloud Docs
Create the action by using the npm script or the ibmcloud fn action update CLI. Run the following npm script. npm run deploy....
Read more >
Firebase deploy functions fails - Atlassian Community
INFO: Starting deployment of the project to Firebase. === Deploying to 'projectNameHere'... i deploying storage, firestore, functions, hosting
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found