Closed agustibr closed 2 years ago
This pr tries to fix the deployment issue with nodejs:
nodejs
.github/workflows/test.yml
.npmrc
engines
package.json
This is the error raised when deploying with capistrano:
The deploy has failed with an error: Exception while executing as decidim@168.119.180.57: cd /home/decidim/decidim-coincidim/releases/20220321094132; npm ci exit status: 137 cd /home/decidim/decidim-coincidim/releases/20220321094132; npm ci stdout: Nothing written cd /home/decidim/decidim-coincidim/releases/20220321094132; npm ci stderr: npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: '@decidim/core@0.26.0', npm WARN EBADENGINE required: { node: '^16.9.1', npm: '^7.21.1' }, npm WARN EBADENGINE current: { node: 'v16.14.0', npm: '8.3.1' } npm WARN EBADENGINE }
Description
This pr tries to fix the deployment issue with
nodejs
:.github/workflows/test.yml
to use the node version.npmrc
file to prevent npm to install not supported Node.js versions more infoengines
entry topackage.json
with node version.This is the error raised when deploying with capistrano: