Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

npm link leaves symlinks belonging to root #2519

Closed
sh1mmer opened this issue Jun 12, 2012 · 3 comments
Closed

npm link leaves symlinks belonging to root #2519

sh1mmer opened this issue Jun 12, 2012 · 3 comments

Comments

@sh1mmer
Copy link

sh1mmer commented Jun 12, 2012

I don't know if this is a real issue but I noticed when npm link creates a link it has permission as root. On my mac that is:

lrwxr-xr-x 1 root admin 23 Jun 11 20:53 ace -> /Users/sh1mmer/Code/ace

vs. a standard install with sudo

drwxr-xr-x 14 nobody staff 476 Jun 11 20:51 express

This may not be an issue but I thought I would point out the inconsistency.

@ralt
Copy link
Contributor

ralt commented Mar 23, 2013

  1. I don't think this is a real issue.
  2. This'd be pretty hard to implement in a cross-OS way.

@luk-
Copy link
Contributor

luk- commented Mar 23, 2013

I can only duplicate this by running npm link with sudo. However, it's better to just set up your permissions to not require this.

@luk- luk- closed this as completed Mar 23, 2013
@domenic
Copy link
Contributor

domenic commented Mar 23, 2013

@st-luke: According to https://github.com/isaacs/npm/issues/3139, sudo is required for the default npm installation on OS X, and @isaacs thinks that's fine.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants