{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/15406","repository_url":"https://api.github.com/repos/npm/npm","labels_url":"https://api.github.com/repos/npm/npm/issues/15406/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/15406/comments","events_url":"https://api.github.com/repos/npm/npm/issues/15406/events","html_url":"https://github.com/npm/npm/issues/15406","id":199011176,"number":15406,"title":"`npm search` No search sources available","user":{"login":"max-b","id":2491841,"avatar_url":"https://avatars.githubusercontent.com/u/2491841?v=3","gravatar_id":"","url":"https://api.github.com/users/max-b","html_url":"https://github.com/max-b","followers_url":"https://api.github.com/users/max-b/followers","following_url":"https://api.github.com/users/max-b/following{/other_user}","gists_url":"https://api.github.com/users/max-b/gists{/gist_id}","starred_url":"https://api.github.com/users/max-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/max-b/subscriptions","organizations_url":"https://api.github.com/users/max-b/orgs","repos_url":"https://api.github.com/users/max-b/repos","events_url":"https://api.github.com/users/max-b/events{/privacy}","received_events_url":"https://api.github.com/users/max-b/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-01-05T17:21:19Z","updated_at":"2017-02-06T15:14:33Z","closed_at":null,"body":"#### I'm opening this issue because:\r\n\r\n  - [X ] npm is crashing.\r\n  - [ ] 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\n`npm search node-sass` produces the following:\r\n```\r\nnpm WARN Failed to read search cache. Rebuilding\r\nnpm WARN Building the local index for the first time, please be patient\r\nnpm WARN all-package-metadata entry-update-stream Empty or invalid stream\r\nnpm ERR! Linux 4.8.0-32-generic\r\nnpm ERR! argv \"/home/maxb/.nvm/versions/node/v6.9.2/bin/node\" \"/home/maxb/.nvm/versions/node/v6.9.2/bin/npm\" \"search\" \"node-sass\"\r\nnpm ERR! node v6.9.2\r\nnpm ERR! npm  v4.0.5\r\n\r\nnpm ERR! No search sources available\r\nnpm ERR! \r\n```\r\n\r\n#### How can the CLI team reproduce the problem?\r\nI used nvm to install and manage node/npm versions. May be relevant here. I've also not run `npm adduser` and I do not have a `.npm` file in my home directory. No step during the install of node/npm with nvm caused that to happen. \r\n\r\nnpm-debug.log\r\nhttps://gist.github.com/max-b/2a4b8f41e67b93fb5d16620150aa573f\r\n\r\n`npm config list -l`:\r\nhttps://gist.github.com/max-b/c425f45f7bbd381e582215111c1eb16b\r\n\r\n### supporting information:\r\n\r\n - `npm -v` prints: 4.0.5\r\n - `node -v` prints: v6.9.2\r\n - `npm config get registry` prints: https://registry.npmjs.org/\r\n - Windows, OS X/macOS, or Linux?: Linux Ubuntu 16.10\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).\r\n"},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/277712327","html_url":"https://github.com/npm/npm/issues/15406#issuecomment-277712327","issue_url":"https://api.github.com/repos/npm/npm/issues/15406","id":277712327,"user":{"login":"flekschas","id":932103,"avatar_url":"https://avatars.githubusercontent.com/u/932103?v=3","gravatar_id":"","url":"https://api.github.com/users/flekschas","html_url":"https://github.com/flekschas","followers_url":"https://api.github.com/users/flekschas/followers","following_url":"https://api.github.com/users/flekschas/following{/other_user}","gists_url":"https://api.github.com/users/flekschas/gists{/gist_id}","starred_url":"https://api.github.com/users/flekschas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flekschas/subscriptions","organizations_url":"https://api.github.com/users/flekschas/orgs","repos_url":"https://api.github.com/users/flekschas/repos","events_url":"https://api.github.com/users/flekschas/events{/privacy}","received_events_url":"https://api.github.com/users/flekschas/received_events","type":"User","site_admin":false},"created_at":"2017-02-06T15:14:33Z","updated_at":"2017-02-06T15:14:33Z","body":"Any updates? I am running into the same problem after updating to `v4.1.2` (with node `v6.9.5` on Mac `v10.11.6`). "}}
{"actor":{"display_login":"flekschas"}}