Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent Node.js 18 provided by Debian 12 from taking precedence over the Node.js 16 package provided by NodeSource #4498

Merged
merged 1 commit into from Jun 15, 2023

Conversation

jnm
Copy link
Member

@jnm jnm commented Jun 15, 2023

The Debian-provided nodejs package also does not include npm, although it's available as a separate Debian-provided package. As a consequence, this error may appear prior to including the change in this PR:

/bin/sh: 1: npm: not found
The command '/bin/sh -c rm -rf ${KPI_NODE_PATH} &&     npm install -g npm@8.5.5 &&     npm install -g check-dependencies &&     rm -rf "${KPI_SRC_DIR}/jsapp/fonts" &&     rm -rf "${KPI_SRC_DIR}/jsapp/compiled" &&     npm install --quiet &&     npm cache clean --force' returned a non-zero code: 127
ERROR: Service 'kpi' failed to build : Build failed

Description

The python:3.10 Docker base image has moved from Debian 11 to Debian 12, necessitating a workaround to continue using Node.js 16.

taking precedence over the Node.js 16 package provided by NodeSource
@jnm jnm merged commit 0efec85 into release/2.023.21 Jun 15, 2023
4 checks passed
@jnm jnm deleted the fix-debian-12-nodejs branch June 15, 2023 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant