Foros del Web » Programando para Internet » Node.js »

problemas con node js

Estas en el tema de problemas con node js en el foro de Node.js en Foros del Web. estoy empezando con node e intento instalar socket desde la consola y me da error escribo npm install socket.io y me aparece esto Código: C:\nodejs\proyect>npm ...
  #1 (permalink)  
Antiguo 09/08/2015, 12:08
 
Fecha de Ingreso: noviembre-2012
Mensajes: 139
Antigüedad: 11 años, 5 meses
Puntos: 1
problemas con node js

estoy empezando con node e intento instalar socket desde la consola y me da error escribo npm install socket.io y me aparece esto


Código:
C:\nodejs\proyect>npm install socket.io
\


> [email protected] install C:\nodejs\node_modules\socket.io\node_modules\engine.
io\node_modules\ws\node_modules\bufferutil
> node-gyp rebuild


C:\nodejs\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_mod
ules\bufferutil>if not defined npm_config_node_gyp (node "C:\nodejs\node_modules
\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  e
lse (node  rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT
HON env variable.
gyp ERR! stack     at failNoPython (C:\nodejs\node_modules\npm\node_modules\node
-gyp\lib\configure.js:114:14)
gyp ERR! stack     at C:\nodejs\node_modules\npm\node_modules\node-gyp\lib\confi
gure.js:69:11
gyp ERR! stack     at FSReqWrap.oncomplete (evalmachine.<anonymous>:95:15)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "C:\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\
bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\nodejs\node_modules\socket.io\node_modules\engine.io\node_module
s\ws\node_modules\bufferutil
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok



> [email protected] install C:\nodejs\node_modules\socket.io\node_modules\eng
ine.io\node_modules\ws\node_modules\utf-8-validate
> node-gyp rebuild

\
C:\nodejs\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_mod
ules\utf-8-validate>if not defined npm_config_node_gyp (node "C:\nodejs\node_mod
ules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
)  else (node  rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT
HON env variable.
gyp ERR! stack     at failNoPython (C:\nodejs\node_modules\npm\node_modules\node
-gyp\lib\configure.js:114:14)
gyp ERR! stack     at C:\nodejs\node_modules\npm\node_modules\node-gyp\lib\confi
gure.js:69:11
gyp ERR! stack     at FSReqWrap.oncomplete (evalmachine.<anonymous>:95:15)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "C:\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\
bin\\node-gyp.js" "rebuild"
cwd C:\nodejs\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node
_modules\utf-8-validate
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
npm WARN optional dep failed, continuing [email protected]
npm WARN optional dep failed, continuing [email protected]
/


> [email protected] install C:\nodejs\node_modules\socket.io\node_modules\soc
ket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\utf-8-v
alidate
> node-gyp rebuild


C:\nodejs\node_modules\socket.io\node_modules\socket.io-client\node_modules\engi
ne.io-client\node_modules\ws\node_modules\utf-8-validate>if not defined npm_conf
ig_node_gyp (node "C:\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modul
es\node-gyp\bin\node-gyp.js" rebuild )  else (node  rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT
HON env variable.
gyp ERR! stack     at failNoPython (C:\nodejs\node_modules\npm\node_modules\node
-gyp\lib\configure.js:114:14)
gyp ERR! stack     at C:\nodejs\node_modules\npm\node_modules\node-gyp\lib\confi
gure.js:69:11
gyp ERR! stack     at FSReqWrap.oncomplete (evalmachine.<anonymous>:95:15)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "C:\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\
bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\nodejs\node_modules\socket.io\node_modules\socket.io-client\node
_modules\engine.io-client\node_modules\ws\node_modules\utf-8-validate
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok



> [email protected] install C:\nodejs\node_modules\socket.io\node_modules\socket.
io-client\node_modules\engine.io-client\node_modules\ws\node_modules\bufferutil
> node-gyp rebuild


C:\nodejs\node_modules\socket.io\node_modules\socket.io-client\node_modules\engi
ne.io-client\node_modules\ws\node_modules\bufferutil>if not defined npm_config_n
ode_gyp (node "C:\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\n
 else (node  rebuild ) " rebuild -)
 ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT
HON env variable.
gyp ERR! stack     at failNoPython (C:\nodejs\node_modules\npm\node_modules\node
-gyp\lib\configure.js:114:14)
gyp ERR! stack     at C:\nodejs\node_modules\npm\node_modules\node-gyp\lib\confi
gure.js:69:11
gyp ERR! stack     at FSReqWrap.oncomplete (evalmachine.<anonymous>:95:15)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "C:\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\
bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\nodejs\node_modules\socket.io\node_modules\socket.io-client\node
_modules\engine.io-client\node_modules\ws\node_modules\bufferutil
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
npm WARN optional dep failed, continuing [email protected]
npm WARN optional dep failed, continuing [email protected]
[email protected] ..\node_modules\socket.io
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected],
 [email protected], [email protected])
├── [email protected] ([email protected], [email protected], socket.io-parser@2.
2.2)
├── [email protected] ([email protected], [email protected], [email protected], [email protected]
.2)
└── [email protected] ([email protected], [email protected], [email protected], componen
[email protected], [email protected], [email protected], [email protected], has
[email protected], [email protected], [email protected])
ayuda
  #2 (permalink)  
Antiguo 09/08/2015, 13:58
Avatar de Carlangueitor
Moderador ლ(ಠ益ಠლ)
 
Fecha de Ingreso: marzo-2008
Ubicación: México
Mensajes: 10.037
Antigüedad: 16 años, 1 mes
Puntos: 1329
Respuesta: problemas con node js

Necesitas instalar Python.
__________________
Grupo Telegram Docker en Español
  #3 (permalink)  
Antiguo 09/08/2015, 17:22
 
Fecha de Ingreso: noviembre-2012
Mensajes: 139
Antigüedad: 11 años, 5 meses
Puntos: 1
Respuesta: problemas con node js

por que razon me pedira instalar python para instalar socket?
  #4 (permalink)  
Antiguo 10/08/2015, 09:40
Avatar de Carlangueitor
Moderador ლ(ಠ益ಠლ)
 
Fecha de Ingreso: marzo-2008
Ubicación: México
Mensajes: 10.037
Antigüedad: 16 años, 1 mes
Puntos: 1329
Respuesta: problemas con node js

Por que socket.io require que compiles modulos nativos, y usa node-gyp, que a su vez requiere python.

Saludos
__________________
Grupo Telegram Docker en Español

Etiquetas: js, node
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 09:22.