简体   繁体   English

将节点应用程序部署到谷歌应用引擎

[英]Deploying an node app to google App engine

在此处输入图像描述

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?我成功部署到谷歌应用引擎,但出现错误“节点:--http-server-default-timeout= is not allowed in NODE_OPTIONS”这是什么意思? I don't know what to do我不知道该怎么办

The error indicates that you are using --http-server-default-timeout somewhere in the options of you app.该错误表明您在应用程序的选项中某处使用--http-server-default-timeout As a workaround you can add an empty NODE_OPTIONS to you app.yaml by adding the following:作为一种解决方法,您可以通过添加以下内容向您的app.yaml添加一个空的NODE_OPTIONS

env_variables: 
    NODE_OPTIONS: ""

Keep in mind that this will overwrite any NODE_OPTIONS you had elsewhere.请记住,这将覆盖您在其他地方拥有的任何NODE_OPTIONS

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.注意:我做了一些调查,发现这个符号在版本 12.4.0 之后可用于 Node.js 根据本文档,所以问题的根本原因可能是您的运行时、依赖项或与之相关的某些版本不匹配.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM