Ho installato il nodo e, presumibilmente, tutte le sue dipendenze su un Amazon EC2. Posso avviare un'app nodo e farlo funzionare bene.
Tuttavia, quando tento di utilizzare npm per installare qualsiasi modulo, ad esempio Express, ottengo la seguente risposta di errore:
[ec2-user@ip-172-31-3-67 Collaborate]$ npm install express
npm http GET https://registry.npmjs.org/express
npm ERR! Error: failed to fetch from registry: express
npm ERR! at /usr/local/lib/node_modules/npm/lib/utils/npm-registry-client/get.js:139:12
npm ERR! at cb (/usr/local/lib/node_modules/npm/lib/utils/npm-registry-client/request.js:32:9)
npm ERR! at Request._callback (/usr/local/lib/node_modules/npm/lib/utils/npm-registry-client/request.js:137:18)
npm ERR! at Request.callback (/usr/local/lib/node_modules/npm/node_modules/request/main.js:109:22)
npm ERR! at Request.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/main.js:198:58)
npm ERR! at Request.emit (events.js:88:20)
npm ERR! at ClientRequest.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/main.js:356:14)
npm ERR! at ClientRequest.emit (events.js:67:17)
npm ERR! at HTTPParser.onIncoming (http.js:1238:11)
npm ERR! at HTTPParser.onHeadersComplete (http.js:102:31)
npm ERR! You may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-@googlegroups.com>
npm ERR!
npm ERR! System Linux 3.10.34-37.137.amzn1.x86_64
npm ERR! command "node" "/usr/local/bin/npm" "install" "express"
npm ERR! cwd /home/ec2-user/Collaborate
npm ERR! node -v v0.6.8
npm ERR! npm -v 1.1.0-2
npm ERR! message failed to fetch from registry: express
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/ec2-user/Collaborate/npm-debug.log
npm not ok
Da questo registro degli errori è possibile sapere cosa ho fatto di sbagliato o cosa mi manca?