Description
When trying to deploy to the Google App Engine, since the Heroku method is having issues primarily around the Node.JS version, I keep getting the following error:
File upload done.
Updating service [default]...failed.
ERROR: (gcloud.app.deploy) Error Response: [9] Cloud build 474c61d4-03ae-4769-abb8-2f51d0f15989 status: FAILURE
npm error code EBADENGINE
npm error engine Unsupported engine
npm error engine Not compatible with your version of node/npm: npm@11.0.0
npm error notsup Not compatible with your version of node/npm: npm@11.0.0
npm error notsup Required: {"node":"^20.17.0 || >=22.9.0"}
npm error notsup Actual: {"npm":"10.8.2","node":"v18.20.5"}
npm error A complete log of this run can be found in: /www-data-home/.npm/_logs/2025-01-09T19_01_38_425Z-debug-0.log
Step #2 - "build": Runtime successfully downloaded from us-central1-docker.pkg.dev/gae-runtimes/runtimes-ubuntu2204/nodejs:18.20.5
Step #2 - "build": === Node.js - Npm (google.nodejs.npm@1.1.0) ===
Step #2 - "build": 2025/01/09 19:01:38 [DEBUG] GET https://registry.npmjs.org/npm
Step #2 - "build": --------------------------------------------------------------------------------
Step #2 - "build": Running "npm install -g --prefix=/layers/google.nodejs.npm/npm npm@11.0.0"
Step #2 - "build": npm error code EBADENGINE
Step #2 - "build": npm error engine Unsupported engine
Step #2 - "build": npm error engine Not compatible with your version of node/npm: npm@11.0.0
Step #2 - "build": npm error notsup Not compatible with your version of node/npm: npm@11.0.0
Step #2 - "build": npm error notsup Required: {"node":"^20.17.0 || >=22.9.0"}
Step #2 - "build": npm error notsup Actual: {"npm":"10.8.2","node":"v18.20.5"}
Step #2 - "build": npm error A complete log of this run can be found in: /www-data-home/.npm/_logs/2025-01-09T19_01_38_425Z-debug-0.log
Step #2 - "build": Done "npm install -g --prefix=/layers/google.nodejs.npm/npm npm@11..." (913.892707ms)
Step #2 - "build": --------------------------------------------------------------------------------
Step #2 - "build": failed to build: Error: (error ID: 7bf2fe97):
Step #2 - "build": npm error code EBADENGINE
Step #2 - "build": npm error engine Unsupported engine
Step #2 - "build": npm error engine Not compatible with your version of node/npm: npm@11.0.0
Step #2 - "build": npm error notsup Not compatible with your version of node/npm: npm@11.0.0
Step #2 - "build": npm error notsup Required: {"node":"^20.17.0 || >=22.9.0"}
Step #2 - "build": npm error notsup Actual: {"npm":"10.8.2","node":"v18.20.5"}
Step #2 - "build": npm error A complete log of this run can be found in: /www-data-home/.npm/_logs/2025-01-09T19_01_38_425Z-debug-0.log
Step #2 - "build": Timer: Builder ran for 3.918876937s and ended at 2025-01-09T19:01:39Z
Step #2 - "build": ERROR: failed to build: exit status 1
Finished Step #2 - "build"
ERROR
ERROR: build step 2 "us.gcr.io/serverless-runtimes/google-22-full/builder/nodejs:nodejs_20241229_RC00" failed: step exited with non-zero status: 51
Ideally I would like to get this deployed this week in a low-code way prior to an initial audit next week.