{"action":"created","issue":{"url":"https://api.github.com/repos/joyent/docker-node/issues/10","labels_url":"https://api.github.com/repos/joyent/docker-node/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/joyent/docker-node/issues/10/comments","events_url":"https://api.github.com/repos/joyent/docker-node/issues/10/events","html_url":"https://github.com/joyent/docker-node/issues/10","id":57295191,"number":10,"title":"Global installs fail","user":{"login":"goloroden","id":906327,"avatar_url":"https://avatars.githubusercontent.com/u/906327?v=3","gravatar_id":"","url":"https://api.github.com/users/goloroden","html_url":"https://github.com/goloroden","followers_url":"https://api.github.com/users/goloroden/followers","following_url":"https://api.github.com/users/goloroden/following{/other_user}","gists_url":"https://api.github.com/users/goloroden/gists{/gist_id}","starred_url":"https://api.github.com/users/goloroden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goloroden/subscriptions","organizations_url":"https://api.github.com/users/goloroden/orgs","repos_url":"https://api.github.com/users/goloroden/repos","events_url":"https://api.github.com/users/goloroden/events{/privacy}","received_events_url":"https://api.github.com/users/goloroden/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-11T09:52:42Z","updated_at":"2015-02-11T14:05:04Z","closed_at":null,"body":"When I run the container `node:0.10` using\r\n\r\n    $ docker run -it node:0.10 bash\r\n\r\nand then inside if the container run\r\n\r\n    # npm install -g pm2-web\r\n\r\nI get an error message by node-gyp telling me that the user is `undefined`:\r\n\r\n> gyp WARN EACCES user \"undefined\" does not have permission to access the dev dir \"/root/.node-gyp/0.10.36\"\r\n> gyp WARN EACCES attempting to reinstall using temporary dev dir \"/usr/local/lib/node_modules/pm2-web/node_modules/mdns2/.node-gyp\"\r\n\r\nHow do I fix that?"},"comment":{"url":"https://api.github.com/repos/joyent/docker-node/issues/comments/73885331","html_url":"https://github.com/joyent/docker-node/issues/10#issuecomment-73885331","issue_url":"https://api.github.com/repos/joyent/docker-node/issues/10","id":73885331,"user":{"login":"chorrell","id":2781,"avatar_url":"https://avatars.githubusercontent.com/u/2781?v=3","gravatar_id":"","url":"https://api.github.com/users/chorrell","html_url":"https://github.com/chorrell","followers_url":"https://api.github.com/users/chorrell/followers","following_url":"https://api.github.com/users/chorrell/following{/other_user}","gists_url":"https://api.github.com/users/chorrell/gists{/gist_id}","starred_url":"https://api.github.com/users/chorrell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chorrell/subscriptions","organizations_url":"https://api.github.com/users/chorrell/orgs","repos_url":"https://api.github.com/users/chorrell/repos","events_url":"https://api.github.com/users/chorrell/events{/privacy}","received_events_url":"https://api.github.com/users/chorrell/received_events","type":"User","site_admin":false},"created_at":"2015-02-11T14:05:04Z","updated_at":"2015-02-11T14:05:04Z","body":"Here's the full error I get\r\n\r\n```\r\nmake: Entering directory '/usr/local/lib/node_modules/pm2-web/node_modules/mdns2/build'\r\n  CXX(target) Release/obj.target/dns_sd_bindings/src/dns_sd.o\r\nIn file included from ../src/dns_sd.cpp:1:0:\r\n../src/mdns.hpp:31:20: fatal error: dns_sd.h: No such file or directory\r\n #include <dns_sd.h>\r\n                    ^\r\ncompilation terminated.\r\ndns_sd_bindings.target.mk:132: recipe for target 'Release/obj.target/dns_sd_bindings/src/dns_sd.o' failed\r\nmake: *** [Release/obj.target/dns_sd_bindings/src/dns_sd.o] Error 1\r\nmake: Leaving directory '/usr/local/lib/node_modules/pm2-web/node_modules/mdns2/build'\r\ngyp ERR! build error \r\ngyp ERR! stack Error: `make` failed with exit code: 2\r\ngyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:98:17)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:820:12)\r\ngyp ERR! System Linux 3.13.0-36-generic\r\ngyp ERR! command \"node\" \"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"\r\ngyp ERR! cwd /usr/local/lib/node_modules/pm2-web/node_modules/mdns2\r\ngyp ERR! node -v v0.10.36\r\ngyp ERR! node-gyp -v v1.0.2\r\ngyp ERR! not ok \r\nnpm WARN optional dep failed, continuing mdns2@2.1.4\r\n```"}}