marshmello37
marshmello37

Reputation: 33

Deploying an node app to google App engine

enter image description here

I succeeded deploy to google app engine but there is an error "node: --http-server-default-timeout= is not allowed in NODE_OPTIONS" What this means? I don't know what to do

Upvotes: 3

Views: 772

Answers (1)

Rafael Lemos
Rafael Lemos

Reputation: 5819

The error indicates that you are using --http-server-default-timeout somewhere in the options of you app. As a workaround you can add an empty NODE_OPTIONS to you app.yaml by adding the following:

env_variables: 
    NODE_OPTIONS: ""

Keep in mind that this will overwrite any NODE_OPTIONS you had elsewhere.

NOTE: I did some investigating and found that this notation is available for Node.js after version 12.4.0 as per this documentation, so maybe the root cause of your issue is that there is some version mismatch on your runtime, dependencies or something related to that.

Upvotes: 1

Related Questions