Closed scalp42 closed 4 years ago
I suspect you are npm installing something as the root user, is that the case?
If so, probably don't, or use https://docs.npmjs.com/misc/config#unsafe-perm, or don't install to a location that needs root perms.
modern-syslog needs to be built, so it needs to write to the fs, and npm when run as root drops its root privileges. root privs are usually needed to write to /usr/share.
Thanks for the quick answer @sam-github much appreciated.
@scalp42 you may find this interesting: https://github.com/npm/pacote/commit/d2f4176b6af393d7e29de27e9b638dbcbab9a0c7 from the latest npm release, it might help with this situation
Hi @sam-github,
We keep seeing the following issue:
Curious you had any idea?
Thanks in advance!