npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

old closed issue from "npm/uid-number" (Error: could not get uid/gid)

running npm install --global on some some instances of node:alpine docker under circle ci is throwing:

Error: could not get uid/gid
[ 'nobody', 0 ]

this is covered in an old closed issue: https://github.com/npm/uid-number/issues/3

and seems like a few people are bringing this up as well in recent context, with the only resolution is to use:

npm config set unsafe-perm true

I’m wondering if this is an issue that needs to be revisited, or if there are better paths to address this other than overwriting unsafe-perm