Ver Mensaje Individual
  #5 (permalink)  
Antiguo 06/06/2013, 20:00
^^Naty^^
 
Fecha de Ingreso: mayo-2006
Mensajes: 20
Antigüedad: 17 años, 11 meses
Puntos: 0
Respuesta: Instalar node.js y socket.io "side-by-side" con Apache

Gracias por las respuestas.

Pude descargar e instalar node.js. Luego, escribí npm para verificar lo que me dijiste, y me sale -bash: npm: command not found. Así que procedí a instalar npm con la línea que se me indicó, y obtuve esto:

curl http://npmjs.org/install.sh | sh
Código:
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0    85    0    85    0     0    412      0 --:--:-- --:--:-- --:--:--  1370
sh: line 1: syntax error near unexpected token `newline'
sh: line 1: `<html>Moved: <a href="https://npmjs.org/install.sh">https://npmjs.org/install.sh</a>'
Así que supuse que debía hacer la instalación desde esa url que me devuelve:

curl https://npmjs.org/install.sh | sh
Código:
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
101  7882  101  7882    0     0  23377      0 --:--:-- --:--:-- --:--:--  118k
npm cannot be installed without nodejs.
Install node first, and then try again.

Maybe node is installed, but not in the PATH?
Note that running as sudo can change envs.

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
Al colocar el comando node, obtengo node: command not found. Al colocar which node, obtengo
Código:
/usr/bin/which: no node in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
No encuentro que pueda estar pasando, he seguido línea a línea tal como se me indicó.

Espero me puedan ayudar a solucionar este problema. gracias.

Saludos,