Npm install inside alpine container with a volume mount fails consistently

Running npm install inside a docker container with a volume mount breaks for reasons unknown to me. Works without a hitch without the volume mount but same install procedure/package.json.

See related Github issue I filed (probably wrongfully) with npm/npm for details and reproduction steps:

Docker version 17.11.0-ce, build 1caf76c