Skip to content

Hello Worlds provides an AppEngine standard version, which doesn't work (yet) #651

Closed

Description

@lukeschaefer

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.

Activity

  1. lukeschaefer commented on Jun 12, 2018

    @lukeschaefer
    Author
  2. techieshark commented on Sep 21, 2018

    @techieshark

    Note the docs say to use nodejs8 but the code seems to only permit nodejs.

    image

    And the error message is a bit confusing (here instead of nodejs I used runtime: reallygooglereally in the app.yaml):

    image

    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).

  3. mrwillis commented on Oct 25, 2018

    @mrwillis

    Yes this is confusing documentation. I'm using flex and I tried nodejs8 then I got some obscure error exactly as above.

  4. somangshu commented on Nov 11, 2018

    @somangshu

    when i set runtime: nodejs the service gets deployed but gives a warning at the beginning that my package.json requires node 8.0

    What is the version used by runtime: nodejs with env: flex

  5. CharlieHess commented on Jun 17, 2019

    @CharlieHess

    What is the version used by runtime: nodejs with env: flex

    Looks like it uses the version defined in the engines field in package.json.

  6. aneesshameed commented on Oct 4, 2019

    @aneesshameed

    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
    >=6

    More details: https://cloud.google.com/appengine/docs/standard/nodejs/runtime

  7. added a commit that references this issue on Oct 26, 2022
  8. added a commit that references this issue on Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions