{"action":"closed","issue":{"url":"https://api.github.com/repos/npm/npm/issues/10498","labels_url":"https://api.github.com/repos/npm/npm/issues/10498/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/10498/comments","events_url":"https://api.github.com/repos/npm/npm/issues/10498/events","html_url":"https://github.com/npm/npm/issues/10498","id":118088938,"number":10498,"title":"Error: Cannot find module 'npm-registry-client' when using npm","user":{"login":"hakimelek","id":1974993,"avatar_url":"https://avatars.githubusercontent.com/u/1974993?v=3","gravatar_id":"","url":"https://api.github.com/users/hakimelek","html_url":"https://github.com/hakimelek","followers_url":"https://api.github.com/users/hakimelek/followers","following_url":"https://api.github.com/users/hakimelek/following{/other_user}","gists_url":"https://api.github.com/users/hakimelek/gists{/gist_id}","starred_url":"https://api.github.com/users/hakimelek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hakimelek/subscriptions","organizations_url":"https://api.github.com/users/hakimelek/orgs","repos_url":"https://api.github.com/users/hakimelek/repos","events_url":"https://api.github.com/users/hakimelek/events{/privacy}","received_events_url":"https://api.github.com/users/hakimelek/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/npm/npm/labels/bug","name":"bug","color":"C40233"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-20T17:36:46Z","updated_at":"2015-11-20T17:48:23Z","closed_at":"2015-11-20T17:48:23Z","body":"I was trying to fix a broken install of npm, I had uninstalled node, reinstalled it but I was still having the same problem. It is impossible to use any npm command without having this error: \r\n\r\n```\r\nmodule.js:340\r\n    throw err;\r\n    ^\r\n\r\nError: Cannot find module 'npm-registry-client'\r\n    at Function.Module._resolveFilename (module.js:338:15)\r\n    at Function.Module._load (module.js:289:25)\r\n    at Module.require (module.js:366:17)\r\n    at require (module.js:385:17)\r\n    at Object.<anonymous> (/Users/username/.node/lib/node_modules/npm/lib/cache/caching-client.js:9:22)\r\n    at Module._compile (module.js:425:26)\r\n    at Object.Module._extensions..js (module.js:432:10)\r\n    at Module.load (module.js:356:32)\r\n    at Function.Module._load (module.js:313:12)\r\n    at Module.require (module.js:366:17)\r\n```\r\n\r\nAll the solutions out there did not solve my problem. \r\n"}}