dotnet / dotnet-buildtools-prereqs-docker

Used to maintain the Docker images hosted at the mcr.microsoft.com/dotnet-buildtools/prereqs image repository
MIT License
53 stars 102 forks source link

npm install error on wasm helix Dockerfile #951

Closed mthalman closed 4 months ago

mthalman commented 6 months ago

When image caching is disabled, the Linux_amd64 src-ubuntu-18.04-helix-graph build leg is failing with this error:

 > [4/7] RUN npm install -g npm:
#7 0.709 npm ERR! code EBADENGINE
#7 0.710 npm ERR! engine Unsupported engine
#7 0.710 npm ERR! engine Not compatible with your version of node/npm: npm@10.2.5
#7 0.710 npm ERR! notsup Not compatible with your version of node/npm: npm@10.2.5
#7 0.711 npm ERR! notsup Required: {"node":"^18.17.0 || >=20.5.0"}
#7 0.711 npm ERR! notsup Actual:   {"npm":"8.19.3","node":"v16.19.0"}
#7 0.712 
#7 0.712 npm ERR! A complete log of this run can be found in:
#7 0.712 npm ERR!     /root/.npm/_logs/2024-01-10T17_06_48_948Z-debug-0.log

This happens when building Dockerfile: https://github.com/dotnet/dotnet-buildtools-prereqs-docker/blob/main/src/ubuntu/18.04/helix/webassembly/Dockerfile

Build link (internal only)

lbussell commented 6 months ago

[Triage] Looks like @radekdoulik was maintaining this Dockerfile in the past.

hoyosjs commented 4 months ago

Fixing as part of https://github.com/dotnet/dotnet-buildtools-prereqs-docker/pull/966