{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/19614","repository_url":"https://api.github.com/repos/npm/npm","labels_url":"https://api.github.com/repos/npm/npm/issues/19614/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/19614/comments","events_url":"https://api.github.com/repos/npm/npm/issues/19614/events","html_url":"https://github.com/npm/npm/issues/19614","id":288919185,"number":19614,"title":"npm uninstall removes packages not specified in the command line","user":{"login":"polomsky","id":1607273,"avatar_url":"https://avatars0.githubusercontent.com/u/1607273?v=4","gravatar_id":"","url":"https://api.github.com/users/polomsky","html_url":"https://github.com/polomsky","followers_url":"https://api.github.com/users/polomsky/followers","following_url":"https://api.github.com/users/polomsky/following{/other_user}","gists_url":"https://api.github.com/users/polomsky/gists{/gist_id}","starred_url":"https://api.github.com/users/polomsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/polomsky/subscriptions","organizations_url":"https://api.github.com/users/polomsky/orgs","repos_url":"https://api.github.com/users/polomsky/repos","events_url":"https://api.github.com/users/polomsky/events{/privacy}","received_events_url":"https://api.github.com/users/polomsky/received_events","type":"User","site_admin":false},"labels":[{"id":597514195,"url":"https://api.github.com/repos/npm/npm/labels/npm5","name":"npm5","color":"b60205","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-01-16T14:07:54Z","updated_at":"2018-04-08T06:15:46Z","closed_at":null,"author_association":"NONE","body":"#### I'm opening this issue because:\r\n\r\n  - [ ] npm is crashing.\r\n  - [ ] npm is producing an incorrect install.\r\n  - [x] 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\nI manually install two packages for testing with no-save. After test of one package I have decided to remove the first one. The second one was removed too. It should stay even it is not mentioned in package.json.\r\n#### How can the CLI team reproduce the problem?\r\nstarting situation\r\n`npm i --save-dev eslint@3.19.0`\r\nthen i decided to test packages\r\n`npm i --no-save jshint eslint-plugin-node`\r\n`npm rm jshint`\r\neslint-plugin-node is unexpectedly removed too\r\n\r\n### supporting information:\r\n\r\n - `npm -v` prints: 5.6.0\r\n - `node -v` prints: 8.9.4\r\n - `npm config get registry` prints: https://registry.npmjs.org/\r\n - Windows, OS X/macOS, or Linux?: linux \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/379523909","html_url":"https://github.com/npm/npm/issues/19614#issuecomment-379523909","issue_url":"https://api.github.com/repos/npm/npm/issues/19614","id":379523909,"user":{"login":"WORMSS","id":1384537,"avatar_url":"https://avatars3.githubusercontent.com/u/1384537?v=4","gravatar_id":"","url":"https://api.github.com/users/WORMSS","html_url":"https://github.com/WORMSS","followers_url":"https://api.github.com/users/WORMSS/followers","following_url":"https://api.github.com/users/WORMSS/following{/other_user}","gists_url":"https://api.github.com/users/WORMSS/gists{/gist_id}","starred_url":"https://api.github.com/users/WORMSS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WORMSS/subscriptions","organizations_url":"https://api.github.com/users/WORMSS/orgs","repos_url":"https://api.github.com/users/WORMSS/repos","events_url":"https://api.github.com/users/WORMSS/events{/privacy}","received_events_url":"https://api.github.com/users/WORMSS/received_events","type":"User","site_admin":false},"created_at":"2018-04-08T06:15:46Z","updated_at":"2018-04-08T06:15:46Z","author_association":"NONE","body":"Most likely this bug #17165"}}
{"actor":{"display_login":"WORMSS"}}