{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/13956","repository_url":"https://api.github.com/repos/npm/npm","labels_url":"https://api.github.com/repos/npm/npm/issues/13956/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/13956/comments","events_url":"https://api.github.com/repos/npm/npm/issues/13956/events","html_url":"https://github.com/npm/npm/issues/13956","id":176855877,"number":13956,"title":"What is the difference between /usr/lib/node_modules and /usr/local/lib/node_modules ?","user":{"login":"cawa-93","id":1662812,"avatar_url":"https://avatars.githubusercontent.com/u/1662812?v=3","gravatar_id":"","url":"https://api.github.com/users/cawa-93","html_url":"https://github.com/cawa-93","followers_url":"https://api.github.com/users/cawa-93/followers","following_url":"https://api.github.com/users/cawa-93/following{/other_user}","gists_url":"https://api.github.com/users/cawa-93/gists{/gist_id}","starred_url":"https://api.github.com/users/cawa-93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cawa-93/subscriptions","organizations_url":"https://api.github.com/users/cawa-93/orgs","repos_url":"https://api.github.com/users/cawa-93/repos","events_url":"https://api.github.com/users/cawa-93/events{/privacy}","received_events_url":"https://api.github.com/users/cawa-93/received_events","type":"User","site_admin":false},"labels":[{"id":104304843,"url":"https://api.github.com/repos/npm/npm/labels/support","name":"support","color":"000000","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-09-14T09:16:21Z","updated_at":"2016-12-30T21:12:13Z","closed_at":null,"body":"#### I'm opening this issue because:\n- [x] npm is doing something I don't understand.\n#### What's going wrong?\n\nOn my system, there are two folders\n\n```\n/usr/lib/node_modules\n/usr/local/lib/node_modules\n```\n\nAnd stored there are different versions of the same libraries that causes discomfort.\n\n```\n/usr/lib/node_modules/typescript/bin/tsc -v\nVersion 2.0.2\n```\n\n```\n/usr/local/lib/node_modules/typescript/bin/tsc -v\nVersion 1.8.10\n```\n\nI would like to know why this is happening and how i can control the installation of libraries? How to know where the library will be installed?\n### supporting information:\n- `/usr/lib/node_modules/npm/bin/npm-cli.js -v` prints: `3.10.8`\n- `node -v` prints: `v4.5.0`\n- `npm config get registry` prints: `https://registry.npmjs.org/`\n- `cat /proc/version` prints:\n\n```\nLinux version 4.4.0-36-generic (buildd@lcy01-01) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.2) ) #5 5-Ubuntu SMP Thu Aug 11 18:01:55 UTC 2016\n```\n"},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/269822476","html_url":"https://github.com/npm/npm/issues/13956#issuecomment-269822476","issue_url":"https://api.github.com/repos/npm/npm/issues/13956","id":269822476,"user":{"login":"comodoro","id":925466,"avatar_url":"https://avatars.githubusercontent.com/u/925466?v=3","gravatar_id":"","url":"https://api.github.com/users/comodoro","html_url":"https://github.com/comodoro","followers_url":"https://api.github.com/users/comodoro/followers","following_url":"https://api.github.com/users/comodoro/following{/other_user}","gists_url":"https://api.github.com/users/comodoro/gists{/gist_id}","starred_url":"https://api.github.com/users/comodoro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/comodoro/subscriptions","organizations_url":"https://api.github.com/users/comodoro/orgs","repos_url":"https://api.github.com/users/comodoro/repos","events_url":"https://api.github.com/users/comodoro/events{/privacy}","received_events_url":"https://api.github.com/users/comodoro/received_events","type":"User","site_admin":false},"created_at":"2016-12-30T21:12:13Z","updated_at":"2016-12-30T21:12:13Z","body":"I tried the above and it did not work, no idea why (changed `$NODE_PATH` and tried again `npm uninstall -g`). So being tired of this, I deleted `/usr/local/lib/node_modules` and the links to the old modules in `/usr/local/bin`. I hope there are not more old files lingering, or at least that they will not ever be used."}}
{"actor":{"display_login":"comodoro"}}