{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/7061","labels_url":"https://api.github.com/repos/npm/npm/issues/7061/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/7061/comments","events_url":"https://api.github.com/repos/npm/npm/issues/7061/events","html_url":"https://github.com/npm/npm/issues/7061","id":53384026,"number":7061,"title":"Can't install module","user":{"login":"fsaccoh","id":7997762,"avatar_url":"https://avatars.githubusercontent.com/u/7997762?v=3","gravatar_id":"","url":"https://api.github.com/users/fsaccoh","html_url":"https://github.com/fsaccoh","followers_url":"https://api.github.com/users/fsaccoh/followers","following_url":"https://api.github.com/users/fsaccoh/following{/other_user}","gists_url":"https://api.github.com/users/fsaccoh/gists{/gist_id}","starred_url":"https://api.github.com/users/fsaccoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsaccoh/subscriptions","organizations_url":"https://api.github.com/users/fsaccoh/orgs","repos_url":"https://api.github.com/users/fsaccoh/repos","events_url":"https://api.github.com/users/fsaccoh/events{/privacy}","received_events_url":"https://api.github.com/users/fsaccoh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-05T10:46:52Z","updated_at":"2015-01-05T15:49:44Z","closed_at":null,"body":"\r\nfodaysaccoh$ npm install -g jshint\r\nnpm WARN locking Error: EACCES, open '/Users/fodaysaccoh/.npm/_locks/jshint-115ab28abe2eddcb.lock'\r\nnpm WARN locking  /Users/fodaysaccoh/.npm/_locks/jshint-115ab28abe2eddcb.lock failed { [Error: EACCES, open '/Users/fodaysaccoh/.npm/_locks/jshint-115ab28abe2eddcb.lock']\r\nnpm WARN locking   errno: 3,\r\nnpm WARN locking   code: 'EACCES',\r\nnpm WARN locking   path: '/Users/fodaysaccoh/.npm/_locks/jshint-115ab28abe2eddcb.lock' }\r\nnpm ERR! Darwin 14.1.0\r\nnpm ERR! argv \"node\" \"/usr/local/bin/npm\" \"install\" \"-g\" \"jshint\"\r\nnpm ERR! node v0.10.33\r\nnpm ERR! npm  v2.1.14\r\n\r\nnpm ERR! Attempt to unlock /Users/fodaysaccoh/npm-global/lib/node_modules/jshint, which hasn't been locked\r\nnpm ERR! \r\nnpm ERR! If you need help, you may report this error at:\r\nnpm ERR!     <http://github.com/npm/npm/issues>\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     /Users/fodaysaccoh/npm-debug.log"},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/68726577","html_url":"https://github.com/npm/npm/issues/7061#issuecomment-68726577","issue_url":"https://api.github.com/repos/npm/npm/issues/7061","id":68726577,"user":{"login":"faiq","id":5673456,"avatar_url":"https://avatars.githubusercontent.com/u/5673456?v=3","gravatar_id":"","url":"https://api.github.com/users/faiq","html_url":"https://github.com/faiq","followers_url":"https://api.github.com/users/faiq/followers","following_url":"https://api.github.com/users/faiq/following{/other_user}","gists_url":"https://api.github.com/users/faiq/gists{/gist_id}","starred_url":"https://api.github.com/users/faiq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faiq/subscriptions","organizations_url":"https://api.github.com/users/faiq/orgs","repos_url":"https://api.github.com/users/faiq/repos","events_url":"https://api.github.com/users/faiq/events{/privacy}","received_events_url":"https://api.github.com/users/faiq/received_events","type":"User","site_admin":false},"created_at":"2015-01-05T15:49:44Z","updated_at":"2015-01-05T15:49:44Z","body":"This looks like a permissions issue, and it can easily be resolved! @linclark recorded this video:  https://www.youtube.com/watch?v=bxvybxYFq2o that gives you multiple different options to fix it! \r\n\r\n\r\nI think this command is the one you'll probably need:\r\n\r\n```\r\nsudo chown -R `whoami` ~/.npm\r\n``` \r\n\r\nBut you should totally watch the video and decide what the best option is for you! "}}