{"action":"opened","issue":{"url":"https://api.github.com/repos/npm/npm/issues/13139","repository_url":"https://api.github.com/repos/npm/npm","labels_url":"https://api.github.com/repos/npm/npm/issues/13139/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/13139/comments","events_url":"https://api.github.com/repos/npm/npm/issues/13139/events","html_url":"https://github.com/npm/npm/issues/13139","id":161614188,"number":13139,"title":"Cannot install modules in /usr/local/lib/node_modules/<package>","user":{"login":"wszydlak","id":6583977,"avatar_url":"https://avatars.githubusercontent.com/u/6583977?v=3","gravatar_id":"","url":"https://api.github.com/users/wszydlak","html_url":"https://github.com/wszydlak","followers_url":"https://api.github.com/users/wszydlak/followers","following_url":"https://api.github.com/users/wszydlak/following{/other_user}","gists_url":"https://api.github.com/users/wszydlak/gists{/gist_id}","starred_url":"https://api.github.com/users/wszydlak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wszydlak/subscriptions","organizations_url":"https://api.github.com/users/wszydlak/orgs","repos_url":"https://api.github.com/users/wszydlak/repos","events_url":"https://api.github.com/users/wszydlak/events{/privacy}","received_events_url":"https://api.github.com/users/wszydlak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-22T07:45:08Z","updated_at":"2016-06-22T07:45:08Z","closed_at":null,"body":"When some package is installed globally (ex. grunt) and You have it in /usr/local/lib/node_modules/grunt, You are not able to install in grunt directory another package using npm install <package>,ex.:\r\n\r\n`npm install -g grunt` -> installed in /usr/local/lib/node_modules/grunt\r\n`cd /usr/local/lib/node_modules/grunt`\r\n`npm install gulp` -> error:\r\n\r\n> npm ERR! Darwin 15.5.0\r\nnpm ERR! argv \"/usr/local/bin/node\" \"/usr/local/bin/npm\" \"install\" \"gulp\"\r\nnpm ERR! node v5.6.0\r\nnpm ERR! npm  v3.9.5\r\nnpm ERR! path /usr/local/lib/node_modules/grunt/node_modules/.staging/grunt-7452e173\r\nnpm ERR! code ENOENT\r\nnpm ERR! errno -2\r\nnpm ERR! syscall rename\r\n\r\n> npm ERR! enoent ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/grunt/node_modules/.staging/grunt-7452e173' -> '/usr/local/lib/node_modules/grunt'\r\nnpm ERR! enoent ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/grunt/node_modules/.staging/grunt-7452e173' -> '/usr/local/lib/node_modules/grunt'\r\nnpm ERR! enoent This is most likely not a problem with npm itself\r\nnpm ERR! enoent and is related to npm not being able to find a file.\r\nnpm ERR! enoent \r\nnpm ERR! Darwin 15.5.0\r\nnpm ERR! argv \"/usr/local/bin/node\" \"/usr/local/bin/npm\" \"install\" \"gulp\"\r\nnpm ERR! node v5.6.0\r\nnpm ERR! npm  v3.9.5\r\nnpm ERR! path npm-debug.log.3973797089\r\nnpm ERR! code ENOENT\r\nnpm ERR! errno -2\r\nnpm ERR! syscall open\r\n\r\n> npm ERR! enoent ENOENT: no such file or directory, open 'npm-debug.log.3973797089'\r\nnpm ERR! enoent ENOENT: no such file or directory, open 'npm-debug.log.3973797089'\r\nnpm ERR! enoent This is most likely not a problem with npm itself\r\nnpm ERR! enoent and is related to npm not being able to find a file.\r\nnpm ERR! enoent \r\n\r\n\r\nIssue may be related to #9633 "}}
{"actor":{"display_login":"wszydlak"}}