"sudo npm update -g" corrupts your file system

sudo npm update -g as jared:
Sometimes EACCES or EPERM output, almost always corrupts the filesystem.

drwxr-xr-x 10 jared jared 129 Feb 22 03:39 /usr

The /usr directory has been claimed by npm and ownership was set to jared:jared as shown above. This same thing happens with other directories seemingly at random whilst being traversed

https://github.com/npm/npm/issues/19883

Hozzászólások