{"action":"opened","issue":{"url":"https://api.github.com/repos/creationix/nvm/issues/1344","repository_url":"https://api.github.com/repos/creationix/nvm","labels_url":"https://api.github.com/repos/creationix/nvm/issues/1344/labels{/name}","comments_url":"https://api.github.com/repos/creationix/nvm/issues/1344/comments","events_url":"https://api.github.com/repos/creationix/nvm/issues/1344/events","html_url":"https://github.com/creationix/nvm/issues/1344","id":194073984,"number":1344,"title":"npm does not list globally installed modules","user":{"login":"adam-moss","id":2951486,"avatar_url":"https://avatars.githubusercontent.com/u/2951486?v=3","gravatar_id":"","url":"https://api.github.com/users/adam-moss","html_url":"https://github.com/adam-moss","followers_url":"https://api.github.com/users/adam-moss/followers","following_url":"https://api.github.com/users/adam-moss/following{/other_user}","gists_url":"https://api.github.com/users/adam-moss/gists{/gist_id}","starred_url":"https://api.github.com/users/adam-moss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adam-moss/subscriptions","organizations_url":"https://api.github.com/users/adam-moss/orgs","repos_url":"https://api.github.com/users/adam-moss/repos","events_url":"https://api.github.com/users/adam-moss/events{/privacy}","received_events_url":"https://api.github.com/users/adam-moss/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-07T15:07:52Z","updated_at":"2016-12-07T15:07:52Z","closed_at":null,"body":"Hi,\r\n\r\n`npm list -g` is not showing globally installed modules:\r\n\r\n```shell\r\n# adam.moss@scarecrow:~ $ npm list -g\r\n/Users/adam.moss/.nvm/versions/node/v7.2.1/lib\r\n└── (empty)\r\n```\r\nHowever there are modules installed (inc. `npm` itself, obviously 😃)\r\n```shell\r\n# adam.moss@scarecrow:~ $ ls .nvm/versions/node/v7.2.1/lib/node_modules/\r\ntotal 0\r\ndrwxr-xr-x  10 adam.moss  staff   340B  7 Dec 14:07 .\r\ndrwxr-xr-x   4 adam.moss  staff   136B  6 Dec 21:48 ..\r\ndrwxr-xr-x  12 adam.moss  staff   408B  7 Dec 14:07 gulp-cli\r\ndrwxr-xr-x   9 adam.moss  staff   306B  7 Dec 14:07 istanbul\r\ndrwxr-xr-x  10 adam.moss  staff   340B  7 Dec 14:07 jasmine\r\ndrwxr-xr-x  15 adam.moss  staff   510B  7 Dec 14:07 mocha\r\ndrwxr-xr-x  27 adam.moss  staff   918B  7 Dec 14:07 npm\r\ndrwxr-xr-x  21 adam.moss  staff   714B  7 Dec 14:07 pm2\r\ndrwxr-xr-x   6 adam.moss  staff   204B  7 Dec 14:07 react-native-cli\r\ndrwxr-xr-x  21 adam.moss  staff   714B  7 Dec 14:07 snyk\r\n```\r\nDebug output\r\n```shell\r\n# adam.moss@scarecrow:~ $ nvm debug\r\nnvm --version: v0.32.1\r\n$SHELL: /usr/local/bin/bash\r\n$HOME: /Users/adam.moss\r\n$NVM_DIR: '$HOME/.nvm'\r\n$PREFIX: ''\r\n$NPM_CONFIG_PREFIX: ''\r\nnvm current: v7.2.1\r\nwhich node: $NVM_DIR/versions/node/v7.2.1/bin/node\r\nwhich iojs: \r\nwhich npm: $NVM_DIR/versions/node/v7.2.1/bin/npm\r\nnpm config get prefix: $NVM_DIR/versions/node/v7.2.1\r\nnpm root -g: $NVM_DIR/versions/node/v7.2.1/lib/node_modules\r\n```\r\nAnd `npm outdated -g` does actually work\r\n```shell\r\n# adam.moss@scarecrow:~ $ npm outdated -g\r\nPackage  Current   Wanted  Latest  Location\r\nnpm      3.10.10  3.10.10   4.0.3\r\n```\r\nContents of my `.npmrc`\r\n```text\r\nsave-exact=true\r\n```\r\nThis is on macOS Sierra (v10.12.1)"}}
{"actor":{"display_login":"adam-moss"}}