Open GabrielBragaGit opened 2 weeks ago
I'm getting this as well, it seems to work on image tag node:22.9-alpine
I'm getting this as well, it seems to work on image tag
node:22.9-alpine
yes the issue started with node: 22.10.0
I can`t do an npm install
anymore
switching back to node:22.9.0-alpine
solved it.
Still seems present in v22.11.0 - the following hangs for 10 mins+ (until cancelling).
npm verbose cli /usr/local/bin/node /usr/local/bin/npm
npm info using npm@10.9.0
npm info using node@v22.11.0
npm verbose title npm ci
npm verbose argv "ci" "--loglevel" "verbose"
npm verbose logfile logs-max:10 dir:/root/.npm/_logs/2024-10-31T20_59_05_818Z-
npm verbose logfile /root/.npm/_logs/2024-10-31T20_59_05_818Z-debug-0.log
As per https://github.com/nodejs/docker-node/issues/2153#issuecomment-2422380608 switching from FROM node:lts AS development
to FROM node:22.9.0-alpine AS development
resolves the issue.
i'm building my image with node:lts-bullseye-slim
and for some reason running RUN npm config set loglevel verbose
before RUN npm ci --legacy-peer-deps
fixed it for me.
I’ve been having trouble building my projects using the latest Docker images for Node.js. The recent updates seem to be causing issues—I can only successfully build with images from earlier dates. Previously, I relied on node:22-alpine, but after the most recent update, it’s no longer working for me. Any insights or fixes?
'npm ci' get stuck like this:
When I try node:lts-alpine3.20 it works as always worked on node:22-alpine.
P.S. After trying a million alternatives, what magically resolved for me was swapping npm for yarn.