{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/19394","repository_url":"https://api.github.com/repos/npm/npm","labels_url":"https://api.github.com/repos/npm/npm/issues/19394/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/19394/comments","events_url":"https://api.github.com/repos/npm/npm/issues/19394/events","html_url":"https://github.com/npm/npm/issues/19394","id":281920375,"number":19394,"title":"npm uninstalls git dependencies when installing package dependencies","user":{"login":"G-Rath","id":3151613,"avatar_url":"https://avatars2.githubusercontent.com/u/3151613?v=4","gravatar_id":"","url":"https://api.github.com/users/G-Rath","html_url":"https://github.com/G-Rath","followers_url":"https://api.github.com/users/G-Rath/followers","following_url":"https://api.github.com/users/G-Rath/following{/other_user}","gists_url":"https://api.github.com/users/G-Rath/gists{/gist_id}","starred_url":"https://api.github.com/users/G-Rath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/G-Rath/subscriptions","organizations_url":"https://api.github.com/users/G-Rath/orgs","repos_url":"https://api.github.com/users/G-Rath/repos","events_url":"https://api.github.com/users/G-Rath/events{/privacy}","received_events_url":"https://api.github.com/users/G-Rath/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2017-12-13T22:34:16Z","updated_at":"2018-02-22T13:42:33Z","closed_at":null,"author_association":"NONE","body":"#### I'm opening this issue because:\r\n\r\n  - [ ] npm is crashing.\r\n  - [x] npm is producing an incorrect install.\r\n  - [ ] npm is doing something I don't understand.\r\n  - [ ] Other (_see below for feature requests_):\r\n\r\n#### What's going wrong?\r\nnpm removes git-url packages when installing other packages.\r\n\r\n#### How can the CLI team reproduce the problem?\r\n\r\n- Created a new project via `npm init`.\r\n- Run `npm install https://github.com/maxogden/iwlist.git`\r\n- Run `npm install axios`.\r\n\r\nExpected: Axios is installed, with output message being something like `added 5 packages in xx.xxxs`\r\nActual: Axios is installed, *and* iwlist is removed, with output message saying `added 5 packages and removed 1 package in 2.371s`.\r\n\r\nRunning `npm install` afterwards results in the now-missing git packages being reinstalled.\r\n\r\n### supporting information:\r\n\r\n - `npm -v` prints: 5.6.0\r\n - `node -v` prints: v8.9.0\r\n - `npm config get registry` prints: https://registry.npmjs.org/\r\n - Windows, OS X/macOS, or Linux?: Windows (10 Pro, Fall Creators Update - version 1709)\r\n - Network issues:\r\n   - Geographic location where npm was run:\r\n   - [ ] I use a proxy to connect to the npm registry.\r\n   - [ ] I use a proxy to connect to the web.\r\n   - [ ] I use a proxy when downloading Git repos.\r\n   - [ ] I access the npm registry via a VPN\r\n   - [ ] I don't use a proxy, but have limited or unreliable internet access.\r\n - Container:\r\n   - [ ] I develop using Vagrant on Windows.\r\n   - [ ] I develop using Vagrant on OS X or Linux.\r\n   - [ ] I develop / deploy using Docker.\r\n   - [ ] I deploy to a PaaS (Triton, Heroku)."},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/367684248","html_url":"https://github.com/npm/npm/issues/19394#issuecomment-367684248","issue_url":"https://api.github.com/repos/npm/npm/issues/19394","id":367684248,"user":{"login":"guillaumearm","id":16897658,"avatar_url":"https://avatars2.githubusercontent.com/u/16897658?v=4","gravatar_id":"","url":"https://api.github.com/users/guillaumearm","html_url":"https://github.com/guillaumearm","followers_url":"https://api.github.com/users/guillaumearm/followers","following_url":"https://api.github.com/users/guillaumearm/following{/other_user}","gists_url":"https://api.github.com/users/guillaumearm/gists{/gist_id}","starred_url":"https://api.github.com/users/guillaumearm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guillaumearm/subscriptions","organizations_url":"https://api.github.com/users/guillaumearm/orgs","repos_url":"https://api.github.com/users/guillaumearm/repos","events_url":"https://api.github.com/users/guillaumearm/events{/privacy}","received_events_url":"https://api.github.com/users/guillaumearm/received_events","type":"User","site_admin":false},"created_at":"2018-02-22T13:42:33Z","updated_at":"2018-02-22T13:42:33Z","author_association":"NONE","body":"`npm@5.7.0` fixes this issue for me. :tada:\r\nthanks everyone 👍 "}}
{"actor":{"display_login":"guillaumearm"}}