isaacs/npm — Issue #1928: Error: failed to fetch from registry: coffee-script
Author: joewhite
Created: 2011-12-23 01:41:48+00:00
State: open

I tried to use npm to install CoffeeScript, and it got an error and told me to report it.

C:\>npm install -g coffee-script
npm http GET https://registry.npmjs.org/coffee-script
npm ERR! Error: failed to fetch from registry: coffee-script
npm ERR! at C:\Program Files (x86)\nodejs\node_modules\npm\lib\utils\npm-reg
istry-client\get.js:139:12
npm ERR! at cb (C:\Program Files (x86)\nodejs\node_modules\npm\lib\utils\npm
-registry-client\request.js:32:9)
npm ERR! at Request._callback (C:\Program Files (x86)\nodejs\node_modules\np
m\lib\utils\npm-registry-client\request.js:137:18)
npm ERR! at Request.callback (C:\Program Files (x86)\nodejs\node_modules\npm
\node_modules\request\main.js:104:22)
npm ERR! at Request. (C:\Program Files (x86)\nodejs\node_modules\
npm\node_modules\request\main.js:181:58)
npm ERR! at Request.emit (events.js:88:20)
npm ERR! at ClientRequest. (C:\Program Files (x86)\nodejs\node_mo
dules\npm\node_modules\request\main.js:329:14)
npm ERR! at ClientRequest.emit (events.js:67:17)
npm ERR! at HTTPParser.onIncoming (http.js:1225:11)
npm ERR! at HTTPParser.onHeadersComplete (http.js:102:31)
npm ERR! Report this *entire* log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR!
npm ERR! System Windows_NT 6.1.7600
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program File
s (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "coffee-scri
pt"
npm ERR! cwd C:\
npm ERR! node -v v0.6.6
npm ERR! npm -v 1.1.0-beta-4
npm ERR! message failed to fetch from registry: coffee-script
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\npm-debug.log
npm not ok

When I try to connect to the URL it's using (https://registry.npmjs.org/coffee-script), FireFox warns me (rather loudly) that the site's certificate is invalid and I should go no further. I don't know whether that's the problem or not (npm may have its own list of trusted SSL certificates, for all I know).

I got this error after doing a fresh install (on a computer that had never had node.js installed before) of the latest node.js Windows installer (node-v0.6.6.msi), which says it includes npm 1.1.0-beta-4.