Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm Install failure: EACCES on ~/.npm/duplexify/3.5.0 #53

Closed
hoch opened this issue Mar 18, 2017 · 4 comments
Closed

npm Install failure: EACCES on ~/.npm/duplexify/3.5.0 #53

hoch opened this issue Mar 18, 2017 · 4 comments
Labels
v1-archived Issue filed against the deprecated version (V1)

Comments

@hoch
Copy link
Member

hoch commented Mar 18, 2017

I don't understand why npm install needs sudo here.

npm WARN deprecated node-uuid@1.4.7: use uuid module instead
npm ERR! Darwin 16.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v6.9.0
npm ERR! npm  v3.10.8
npm ERR! path /Users/$USER/.npm/duplexify/3.5.0
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall mkdir

npm ERR! Error: EACCES: permission denied, mkdir '/Users/$USER/.npm/duplexify/3.5.0'
npm ERR!     at Error (native)
npm ERR!  { Error: EACCES: permission denied, mkdir '/Users/$USER/.npm/duplexify/3.5.0'
npm ERR!     at Error (native)
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'mkdir',
npm ERR!   path: '/Users/$USER/.npm/duplexify/3.5.0',
npm ERR!   parent: 'vinyl-fs' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

Note: I am running macOS Sierra 10.12.3 (16D32). $USER is my home directory.

@hoch hoch added the bug label Mar 18, 2017
@chihuahua
Copy link
Collaborator

Hmm, I'm not certain either. That seems to relate to the global installation of a certain package. I thought that npm install was only supposed to update the node_modules directory local to the repo.

Maybe npm install also updates global packages while it's at it? I'm basically not sure ATM.

@chihuahua
Copy link
Collaborator

Maybe try running sudo chown -R $USER ~/.npm?

@hoch
Copy link
Member Author

hoch commented Apr 3, 2017

I know this is the permission problem, but I think the installation of extension project should not require the admin.

@chihuahua
Copy link
Collaborator

Yeah, I wonder why npm install is updating /Users/$USER/.npm. That's for global installations.

@hoch hoch added v1-archived Issue filed against the deprecated version (V1) and removed bug labels Sep 9, 2021
@hoch hoch closed this as completed Sep 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v1-archived Issue filed against the deprecated version (V1)
Projects
None yet
Development

No branches or pull requests

2 participants