{"id":113,"hash":"03964593ad581a3777f95ac9921c3a9b644a9f7c77680ccc62df72f74bdcac90","pattern":"&quot;message failed to fetch from registry&quot; while trying to install any module","full_message":"I can't install any node module from the npm.\n\nnpm install socket.io\n\nThe above command resulted to below output, it is not able to install socket.io\n\nnpm http GET https://registry.npmjs.org/socket.io\n\nnpm ERR! Error: failed to fetch from registry: socket.io\nnpm ERR!     at /opt/node0610/lib/node_modules/npm/lib/utils/npm-registry-client/get.js:139:12\nnpm ERR!     at cb (/opt/node0610/lib/node_modules/npm/lib/utils/npm-registry-client/request.js:32:9)\nnpm ERR!     at Request._callback (/opt/node0610/lib/node_modules/npm/lib/utils/npm-registry-client/request.js:137:18)\nnpm ERR!     at Request.callback (/opt/node0610/lib/node_modules/npm/node_modules/request/main.js:109:22)\nnpm ERR!     at Request.<anonymous> (/opt/node0610/lib/node_modules/npm/node_modules/request/main.js:198:58)\nnpm ERR!     at Request.emit (events.js:88:20)\nnpm ERR!     at ClientRequest.<anonymous> (/opt/node0610/lib/node_modules/npm/node_modules/request/main.js:195:10)\nnpm ERR!     at ClientRequest.emit (events.js:67:17)\nnpm ERR!     at CleartextStream.<anonymous> (http.js:1134:11)\nnpm ERR!     at CleartextStream.emit (events.js:67:17)\nnpm ERR! You may report this log at:\nnpm ERR!     <http://github.com/isaacs/npm/issues>\nnpm ERR! or email it to:\nnpm ERR!     <npm-@googlegroups.com>\nnpm ERR! \nnpm ERR! System Linux 2.6.18-194.el5\nnpm ERR! command \"node\" \"/opt/node0610/bin/npm\" \"install\" \"socket.io\"\nnpm ERR! cwd /opt/node0610/lib/node_modules\nnpm ERR! node -v v0.6.10\nnpm ERR! npm -v 1.1.0-3\nnpm ERR! message failed to fetch from registry: socket.io\nnpm ERR! \nnpm ERR! Additional logging details can be found in:\nnpm ERR!     /opt/node0610/lib/node_modules/npm-debug.log\nnpm not ok\n\nMy NPM Version is :\n\n[applmgr@dev node_modules]$ npm --version\n1.1.0-3\n\nMy NodeJS Version is :\n\n[applmgr@dev node_modules]$ node --version\nv0.6.10","ecosystem":"npm","package_name":"node.js","package_version":null,"solution":"https://github.com/isaacs/npm/issues/2119\n\nI had to execute the command below:\n\nnpm config set registry http://registry.npmjs.org/\n\nHowever, that will make npm install packages over an insecure HTTP connection. If you can, you should stick with\n\nnpm config set registry https://registry.npmjs.org/\n\ninstead to install over HTTPS.","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/12913141/message-failed-to-fetch-from-registry-while-trying-to-install-any-module","votes":366,"created_at":"2026-04-19T04:41:20.064774+00:00","updated_at":"2026-04-19T04:51:01.813240+00:00"}