{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/9204","repository_url":"https://api.github.com/repos/npm/npm","labels_url":"https://api.github.com/repos/npm/npm/issues/9204/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/9204/comments","events_url":"https://api.github.com/repos/npm/npm/issues/9204/events","html_url":"https://github.com/npm/npm/issues/9204","id":99788887,"number":9204,"title":"Couldn't install optional dependency: Unsupported","user":{"login":"StreetStrider","id":2124761,"avatar_url":"https://avatars.githubusercontent.com/u/2124761?v=3","gravatar_id":"","url":"https://api.github.com/users/StreetStrider","html_url":"https://github.com/StreetStrider","followers_url":"https://api.github.com/users/StreetStrider/followers","following_url":"https://api.github.com/users/StreetStrider/following{/other_user}","gists_url":"https://api.github.com/users/StreetStrider/gists{/gist_id}","starred_url":"https://api.github.com/users/StreetStrider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StreetStrider/subscriptions","organizations_url":"https://api.github.com/users/StreetStrider/orgs","repos_url":"https://api.github.com/users/StreetStrider/repos","events_url":"https://api.github.com/users/StreetStrider/events{/privacy}","received_events_url":"https://api.github.com/users/StreetStrider/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/npm/npm/labels/bug","name":"bug","color":"A328B3"},{"url":"https://api.github.com/repos/npm/npm/labels/error-handling","name":"error-handling","color":"139D08"},{"url":"https://api.github.com/repos/npm/npm/labels/merge-to-latest","name":"merge-to-latest","color":"FFFFFF"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/npm/npm/milestones/58","html_url":"https://github.com/npm/npm/milestones/3.5.0","labels_url":"https://api.github.com/repos/npm/npm/milestones/58/labels","id":1405600,"number":58,"title":"3.5.0","description":"","creator":{"login":"iarna","id":983798,"avatar_url":"https://avatars.githubusercontent.com/u/983798?v=3","gravatar_id":"","url":"https://api.github.com/users/iarna","html_url":"https://github.com/iarna","followers_url":"https://api.github.com/users/iarna/followers","following_url":"https://api.github.com/users/iarna/following{/other_user}","gists_url":"https://api.github.com/users/iarna/gists{/gist_id}","starred_url":"https://api.github.com/users/iarna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iarna/subscriptions","organizations_url":"https://api.github.com/users/iarna/orgs","repos_url":"https://api.github.com/users/iarna/repos","events_url":"https://api.github.com/users/iarna/events{/privacy}","received_events_url":"https://api.github.com/users/iarna/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":8,"state":"closed","created_at":"2015-11-10T23:28:36Z","updated_at":"2015-12-02T00:13:52Z","due_on":"2015-11-19T08:00:00Z","closed_at":"2015-11-25T20:48:04Z"},"comments":135,"created_at":"2015-08-08T10:00:38Z","updated_at":"2016-10-06T20:18:54Z","closed_at":"2015-11-20T03:10:35Z","body":"Hello. I've faced some issues, possibly it was caused by updating npm from v2 to v3 on my machine. I've tried to solve this by myself but had no success.\r\n\r\nI'm using my homedir as a place for common-used npm-packages.\r\nSo, when I do `npm i fibonacci` in `~` I get `~/node_modules/fibonacci`. This works even if I have no `~/package.json` (I recieve warning, but this is ok for me). I was using this for tests: any node script in my home subtree is able to access modules from `~/node_modules`. I also have my own packages in `~/node_modules` as git-repositories, synchronized with my github repos. This works in `v2`, but in `v3` I got this error on **every** install:\r\n```\r\nnpm WARN install Couldn't install optional dependency: Unsupported\r\nnpm WARN ENOENT ENOENT, open '/home/streetstrider/package.json'\r\nnpm ERR! Linux 3.13.0-61-generic\r\nnpm ERR! argv \"node\" \"/home/streetstrider/opt/node/bin/npm\" \"i\" \"lodash\"\r\nnpm ERR! node v0.12.7\r\nnpm ERR! npm  v3.2.1\r\nnpm ERR! path /home/streetstrider/node_modules/repl.js\r\nnpm ERR! code EISGIT\r\n\r\nnpm ERR! git Appears to be a git repo or submodule.\r\nnpm ERR! git     /home/streetstrider/node_modules/repl.js\r\nnpm ERR! git Refusing to remove it. Update manually,\r\nnpm ERR! git or move it out of the way first.\r\n```\r\nHere I'm trying to install `lodash`; and `repl.js` is my own package, installed as git-repo. So, when I have any git repositories in `~/node_modules` they prevent me from installing **any** other ordinary package.\r\n\r\nHow I'm trying to fix this:\r\n1. I've searched through my packages tree and found nothing broken.\r\n2. I've also searched for «Unsupported»-stuff in tree, nothing too.\r\n3. Then I hide all my git repositories and install proceeded successfully.\r\n4. Then I unhide one of my git-packages and error shows again.\r\n5. I've searched through issues here and found nothing similar. Maybe #7790 has some similarities, though.\r\nPlease, help me to overcome this issue."},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/252076522","html_url":"https://github.com/npm/npm/issues/9204#issuecomment-252076522","issue_url":"https://api.github.com/repos/npm/npm/issues/9204","id":252076522,"user":{"login":"replete","id":812139,"avatar_url":"https://avatars.githubusercontent.com/u/812139?v=3","gravatar_id":"","url":"https://api.github.com/users/replete","html_url":"https://github.com/replete","followers_url":"https://api.github.com/users/replete/followers","following_url":"https://api.github.com/users/replete/following{/other_user}","gists_url":"https://api.github.com/users/replete/gists{/gist_id}","starred_url":"https://api.github.com/users/replete/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/replete/subscriptions","organizations_url":"https://api.github.com/users/replete/orgs","repos_url":"https://api.github.com/users/replete/repos","events_url":"https://api.github.com/users/replete/events{/privacy}","received_events_url":"https://api.github.com/users/replete/received_events","type":"User","site_admin":false},"created_at":"2016-10-06T20:18:54Z","updated_at":"2016-10-06T20:18:54Z","body":"I'm having this problem with Visual Studio 2015.3.\r\n\r\n`fsevents` is a node package that is often included with packages to support Mac OS, the only supported platform.\r\n\r\nMy short-term fix is to create `node_modules/.fake-fsevents/package.json` containing `{\"name\": \"fsevents\",\"version\": \"1.0.0\",\"os\":[\"!darwin\"]}`.\r\n\r\nYou could script this file's creation into an npm `postinstall` task."}}
{"actor":{"display_login":"replete"}}