I was using nodejs 16 for my gcloud node application.
Now I am getting warning and unable to deploy nodejs app to gcloud.
I am trying to re-upload with latest nodejs version.
This is my cloudbuild.yaml
# Install node packages
- name: node:18.7.0
entrypoint: npm
args: ['install', '--ignore-engines']
# Deploy to google cloud app engine
- name: "gcr.io/cloud-builders/gcloud"
args: ['app', 'deploy']
This is my app.yaml file
env: flex
env_variables:
GOOGLE_APPLICATION_CREDENTIALS: "config/project-google-sheet-credentials-prod.json"
PROD: true
manual_scaling:
instances: 1
resources:
cpu: 1
memory_gb: 4
disk_size_gb: 10
network:
name: projects/myproject/global/networks/vpc1
I am keep getting error like this:
Step #1: npm ERR! path /workspace/node_modules/fibers
Step #1: npm ERR! command failed
Step #1: npm ERR! command sh /tmp/install-13dd1c3c.sh
Step #1: npm ERR! make: Entering directory '/workspace/node_modules/fibers/build'
Step #1: npm ERR! CXX(target) Release/obj.target/fibers/src/fibers.o
Step #1: npm ERR! make: Leaving directory '/workspace/node_modules/fibers/build'
Step #1: npm ERR! make: Entering directory '/workspace/node_modules/fibers/build'
Step #1: npm ERR! CXX(target) Release/obj.target/fibers/src/fibers.o
Step #1: npm ERR! make: Leaving directory '/workspace/node_modules/fibers/build'
Step #1: npm ERR! gyp info it worked if it ends with ok
Step #1: npm ERR! gyp info using [email protected]
Step #1: npm ERR! gyp info using [email protected] | linux | x64
Step #1: npm ERR! gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
Step #1: npm ERR! gyp http GET https://nodejs.org/download/release/v18.7.0/node-v18.7.0-headers.tar.gz
Step #1: npm ERR! gyp http 200 https://nodejs.org/download/release/v18.7.0/node-v18.7.0-headers.tar.gz
Step #1: npm ERR! gyp http GET https://nodejs.org/download/release/v18.7.0/SHASUMS256.txt
Step #1: npm ERR! gyp http 200 https://nodejs.org/download/release/v18.7.0/SHASUMS256.txt
Step #1: npm ERR! gyp info spawn /usr/bin/python3```