nodejs / docker-node

Official Docker Image for Node.js :whale: :turtle: :rocket:
https://hub.docker.com/_/node/
MIT License
8.24k stars 1.97k forks source link

npm doesn't run in 19.3.0-alpine3.17 container #1829

Open GDBlaster opened 1 year ago

GDBlaster commented 1 year ago

Environment

Expected Behavior

npm responding to calls such as (but not limited to as this affects the totallity of npm) :

docker exec NodeAlpineArmv7Container npm -v
    <npm version> 

Current Behavior

currently running any npm command inside this image wil cause npm to take the shell (as expected) and proceed to do nothing until being forcibly closed effectively never crashing or giving back the shell in any way

Possible Solution

this is an error on your end as pulling directly from alpine:3.17 for arm and adding node and npm from apk gives the expected output

Steps to Reproduce

pull the image and run any npm command inside a container running it

Additional Information

n-thumann commented 1 year ago

Sounds like a duplicate of https://github.com/nodejs/docker-node/issues/1798 to me: I was able to reproduce the same behavior, i.e. running Node v19 in an armv7 Alpine container hangs indefinitely.

harryzcy commented 1 year ago

I'm having the same issue. npm install works on arm64/v8 and amd64, but not on arm/v7

tyranron commented 1 year ago

The same for Node v20 images.