【发布时间】:2021-11-30 08:33:26
【问题描述】:
我正在尝试将我的 React 应用部署到 GAE, 我使用云构建 最后我收到此错误:
ERROR: (gcloud.app.deploy) Error Response: [9] Cloud build 8a36fcd1-285e-49bc-a13f-b6aef9ae5c8f status: FAILURE
npm ERR! bindings not accessible from watchpack-chokidar2:fsevents
这是我的 app.yaml:
runtime: nodejs14
service: ***********
basic_scaling:
max_instances: 10
idle_timeout: 5m
resources:
cpu: 1
memory_gb: 0.5
disk_size_gb: 10
handlers:
- url: /.*
script: auto
secure: always
redirect_http_response_code: 301
这是 cloudBuild.yaml
steps:
- name: node
entrypoint: npm
args: ['install']
- name: node
entrypoint: npm
args: ['run','build']
- name: 'gcr.io/cloud-builders/gcloud'
args: ['app', 'deploy']
timeout: 1200s
timeout: 1200s
【问题讨论】:
-
嗨,你可以看到这是一个 npm 错误,你可以在stackoverflow 上解决这个问题,这与你的类似,我认为评论告诉你“npm 7 package-lock .js 无法被 npm6 CI 读取”可能会对您有所帮助。你的应用在本地也能正常运行吗?
标签: google-app-engine deployment