So you are running everything in docker?
If so, the issue is unlikely to be with your OS or NPM version, since Node and NPM versions are defined by the docker image definition, meaning everyone using docker will be running the same version.
What steps did you take to get there? Just running the
Could you please send the entirety of your log (in something like https://pastebin.com for example)? There might be a useful clue in there to find.
Have you tried building the image again? It could have been a temporary issue.
Is could also potentially be something to do with your internet connection or a proxy.
To try and isolate the issue, you could try building another Node-based docker image to see if it fails in the same way. Here’s a random project that uses technologies similar to BookBrainz; clone the project then from that folder run the command
docker build ..