{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/node-gyp/issues/454","labels_url":"https://api.github.com/repos/nodejs/node-gyp/issues/454/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node-gyp/issues/454/comments","events_url":"https://api.github.com/repos/nodejs/node-gyp/issues/454/events","html_url":"https://github.com/nodejs/node-gyp/issues/454","id":35219912,"number":454,"title":"Warning \"root\" does not have permission to access the dev dir ","user":{"login":"tjwebb","id":1009114,"avatar_url":"https://avatars.githubusercontent.com/u/1009114?v=3","gravatar_id":"","url":"https://api.github.com/users/tjwebb","html_url":"https://github.com/tjwebb","followers_url":"https://api.github.com/users/tjwebb/followers","following_url":"https://api.github.com/users/tjwebb/following{/other_user}","gists_url":"https://api.github.com/users/tjwebb/gists{/gist_id}","starred_url":"https://api.github.com/users/tjwebb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjwebb/subscriptions","organizations_url":"https://api.github.com/users/tjwebb/orgs","repos_url":"https://api.github.com/users/tjwebb/repos","events_url":"https://api.github.com/users/tjwebb/events{/privacy}","received_events_url":"https://api.github.com/users/tjwebb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":36,"created_at":"2014-06-07T22:02:07Z","updated_at":"2015-08-27T20:47:44Z","closed_at":"2015-08-24T10:34:30Z","body":"```\r\ngyp WARN EACCES user \"root\" does not have permission to access the dev dir \"/home/travis/.node-gyp/0.10.28\"\r\n```\r\nI'm filing this here because `node-gyp` is the only package that seems to throw this issue. My project depends on some modules which build with `node-gyp`, and I see this warning for every one of them during 'npm install'. Does anyone have insight on what this warning means?"},"comment":{"url":"https://api.github.com/repos/nodejs/node-gyp/issues/comments/135551169","html_url":"https://github.com/nodejs/node-gyp/issues/454#issuecomment-135551169","issue_url":"https://api.github.com/repos/nodejs/node-gyp/issues/454","id":135551169,"user":{"login":"EthanMichaels","id":1093426,"avatar_url":"https://avatars.githubusercontent.com/u/1093426?v=3","gravatar_id":"","url":"https://api.github.com/users/EthanMichaels","html_url":"https://github.com/EthanMichaels","followers_url":"https://api.github.com/users/EthanMichaels/followers","following_url":"https://api.github.com/users/EthanMichaels/following{/other_user}","gists_url":"https://api.github.com/users/EthanMichaels/gists{/gist_id}","starred_url":"https://api.github.com/users/EthanMichaels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EthanMichaels/subscriptions","organizations_url":"https://api.github.com/users/EthanMichaels/orgs","repos_url":"https://api.github.com/users/EthanMichaels/repos","events_url":"https://api.github.com/users/EthanMichaels/events{/privacy}","received_events_url":"https://api.github.com/users/EthanMichaels/received_events","type":"User","site_admin":false},"created_at":"2015-08-27T20:47:44Z","updated_at":"2015-08-27T20:47:44Z","body":"> I'd install it somewhere under my home directory (or a home directory), not site-wide. That way you don't have to run npm as root.\r\n>\r\n> Alternatively, you can take the homebrew approach where you chown everything under /usr/local. It's not the approach I personally would take but if you are on a single-user system (and a Mac usually is), it's probably alright.\r\n\r\nOk, thanks for the advice. That's helpful."}}