isaacs/npm — Issue #2078: strict umask and created node_modules directories
Author: inimino
Created: 2012-01-23 05:55:39+00:00
State: open

When node_modules directories are created, they seem to use the umask of the user running the command, rather than having the permissions they need.

Even when the node_modules directory already exists, the permissions are reset:

```
# umask
0077
# ls -ld /usr/local/lib/node_modules/
drwxr-xr-x 5 root root 4096 Jan 23 00:42 /usr/local/lib/node_modules/
# npm install -g df
# ls -ld /usr/local/lib/node_modules/
drwx------ 5 root root 4096 Jan 23 00:43 /usr/local/lib/node_modules/
```