docker-node icon indicating copy to clipboard operation
docker-node copied to clipboard

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

Open GDBlaster opened this issue 2 years ago • 3 comments

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

GDBlaster avatar Dec 23 '22 14:12 GDBlaster

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.

n-thumann avatar Jan 01 '23 15:01 n-thumann

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

harryzcy avatar Jan 02 '23 06:01 harryzcy

The same for Node v20 images.

tyranron avatar Jun 09 '23 12:06 tyranron