docker-node
docker-node copied to clipboard
npm doesn't run in 19.3.0-alpine3.17 container
Environment
- Platform: linux/arm/v7
- Docker Version: 20.10.17
- Node.js Version: 19.3.0
- Image Tag: 19.3.0-alpine3.17
- Note: This behavior is specific to the arm version and is not present on the amd64 version
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
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.
I'm having the same issue. npm install
works on arm64/v8
and amd64
, but not on arm/v7
The same for Node v20 images.