{"action":"closed","issue":{"url":"https://api.github.com/repos/npm/npm/issues/11035","labels_url":"https://api.github.com/repos/npm/npm/issues/11035/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/11035/comments","events_url":"https://api.github.com/repos/npm/npm/issues/11035/events","html_url":"https://github.com/npm/npm/issues/11035","id":124979268,"number":11035,"title":"Deprecate `npm search` in npm 4.0","user":{"login":"smikes","id":5124609,"avatar_url":"https://avatars.githubusercontent.com/u/5124609?v=3","gravatar_id":"","url":"https://api.github.com/users/smikes","html_url":"https://github.com/smikes","followers_url":"https://api.github.com/users/smikes/followers","following_url":"https://api.github.com/users/smikes/following{/other_user}","gists_url":"https://api.github.com/users/smikes/gists{/gist_id}","starred_url":"https://api.github.com/users/smikes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smikes/subscriptions","organizations_url":"https://api.github.com/users/smikes/orgs","repos_url":"https://api.github.com/users/smikes/repos","events_url":"https://api.github.com/users/smikes/events{/privacy}","received_events_url":"https://api.github.com/users/smikes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/npm/npm/labels/feature-request","name":"feature-request","color":"ACE1AF"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-05T14:40:05Z","updated_at":"2016-01-12T22:50:57Z","closed_at":"2016-01-12T22:50:57Z","body":"TL;DR:\r\n\r\nNext version of npm@3, start warning that `npm search` will be deprecated as of 4.0\r\n\r\nRemove the command in npm@4\r\n\r\nConsider re-introducing `npm search` in >=5 as a command that queries the `npmjs.org` search API endpoint.\r\n\r\nMotivations:\r\n\r\n`npm search` as an offline command has been broken for >2 years.  People still try to use it though.\r\nOffline-supporting alternatives (npm-kludge-search; there may be others) are still slow and awkward, unlikely to be integrated into npm mainline anytime soon.\r\nEventual goal is to have `npm search` provide the same results as the npmjs.org search endpoint, but implementing this feature a) requires www/registry coordination and b) is not even visible from the current  CLI roadmap\r\n\r\nTherefore:\r\n\r\nPut CLI `npm search` on the deprecation track now and revive it when the www/registry coordination can be done.\r\n\r\nRelevant search issues: #11010 #10615 #9251 #4360 #8700 #6016 #9259 #5144 , many others"}}