You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Hello Worlds provides an AppEngine standard version, which doesn't work (yet) #651
In appengine/hello-world/standard - it describes how to launch a nodejs app in the standard AppEngine platform. But this doesn't work ("Invalid runtime nodejs8 selected") - and the link to the docs (https://cloud.google.com/appengine/docs/standard/nodejs) 404s. So far, there hasn't been any mention in documentation that nodejs is supported in AppEngine standard.
Note the docs say to use nodejs8 but the code seems to only permit nodejs.
And the error message is a bit confusing (here instead of nodejs I used runtime: reallygooglereally in the app.yaml):
If I try nodejs8 I got this similar error:
"ERROR: (gcloud.app.deploy) Your application does not satisfy all of the requirements for a runtime of type [nodejs8]. Please correct the errors and try again."
Update:
The above is true for the "flexible" app engine environment (env: flex in app.yaml) . The standard environment allows nodejs8. (See reference for runtime: in App Engine flexible environment app.yaml vs standard environment app.yaml).
Reacted by Julian Wilson, Somangshu Goswami, Z and Götz
Activity
lukeschaefer commentedon Jun 12, 2018
Welp - appears I was two days early to trying it out!
https://cloudplatform.googleblog.com/2018/06/Now-you-can-deploy-your-Node-js-app-to-App-Engine-standard-environment.html
techieshark commentedon Sep 21, 2018
Note the docs say to use
nodejs8but the code seems to only permitnodejs.And the error message is a bit confusing (here instead of nodejs I used
runtime: reallygooglereallyin the app.yaml):If I try nodejs8 I got this similar error:
Update:
The above is true for the "flexible" app engine environment (
env: flexin app.yaml) . The standard environment allows nodejs8. (See reference forruntime:in App Engine flexible environment app.yaml vs standard environment app.yaml).mrwillis commentedon Oct 25, 2018
Yes this is confusing documentation. I'm using flex and I tried
nodejs8then I got some obscure error exactly as above.somangshu commentedon Nov 11, 2018
when i set
runtime: nodejsthe service gets deployed but gives a warning at the beginning that my package.json requires node 8.0What is the version used by
runtime: nodejswithenv: flexCharlieHess commentedon Jun 17, 2019
Looks like it uses the version defined in the
enginesfield inpackage.json.aneesshameed commentedon Oct 4, 2019
For flex env, in app.yaml you need following, Do don't specify the version in app.yaml
runtime: nodejs
env: flex
and in package.json you need to specify the version
"engines": {
"node": "8.x.x"
},
Here are the list of version
8.x.x^8.0.0~8>=6More details: https://cloud.google.com/appengine/docs/standard/nodejs/runtime
chore(main): release 3.0.3 (#651)
chore(main): release 3.0.3 (#651)