Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Question

New error
Source Link

Okay so I am trying to install wsGot python version 3.5.0 installed (websocketThanks to Hiren S.) in nodefor saying I didn't have it installed.js but Now I am getting this error? when I triedtry to do, npm install python it seemed like it did something or installed it so I triedinstall ws npm install ws again but once again got this(web socket.) Still have no idea what error? If anyone knows I am getting or what it means and how I can fix this please and thank you.

C:\Documents and Settings\Grimm>npm install python
[email protected] node_modules\python
C:\Documents and Settings\Grimm>npm install ws
-
> utf-8-validate@1bufferutil@1.2.1 install C:\Documents and Settings\Grimm\node_modules\ws\noSettings\Grimm\node_modules\ws\node_m
de_modules\utf-8-validateodules\bufferutil
> node-gyp rebuild
C:\Documents and Settings\Grimm\node_modules\ws\node_modules\utf-8-validate>ifSettings\Grimm\node_modules\ws\node_modules\bufferutil>if no
tnot definedde
fined npm_config_node_gyp (node "E:\Agar\Ogar-master\src\nodejs\node_modulesmaster\src\nodejs\node_modules\npm
\npm\bin\node\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) eelse
lse (node rebuild )
gyp ERR! configureUNCAUGHT errorEXCEPTION
gyp ERR! stack Error: Can'tspawn findUNKNOWN
gyp PythonERR! executablestack "python", you can set theat PYTexports._errnoException (util.js:837:11)
HONgyp envERR! variablestack at ChildProcess.spawn (internal/child_process.js:298:11)
gyp ERR! stack at failNoPythonexports.spawn (child_process.js:339:9)
gyp ERR! stack at exports.execFile (child_process.js:141:15)
gyp ERR! stack at checkPythonVersion (E:\Agar\Ogar-master\src\nodejs\node_modules\master\src\nodejs\node_mo
npm\node_modules\nodedules\npm\node_modules\node-gyp\lib\configure.js:11686:145)
gyp ERR! stack at E:\Agar\Ogar-master\src\nodejs\node_modules\npm\node_modul
es\node-gyp\lib\configure.js:7153:119
gyp ERR! stack at E:\Agar\Ogar-master\src\nodejs\node_modules\npm\node_modul
es\which\which.js:82:18
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:82:15)
gyp ERR! System Windows_NT 5.1.2600
gyp ERR! command "E:\\Agar\\Ogar-master\\src\\nodejs\\node.exe" "E:\\Agar\\Ogar-
master\\src\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js
" "rebuild"
gyp ERR! cwd C:\Documents and Settings\Grimm\node_modules\ws\node_modules\utf-8-vSettings\Grimm\node_modules\ws\node_modules\bufferu
alidatetil
gyp ERR! node -v v4.1.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! This is a bug in `node-gyp`.
gyp ERR! Try to update node-gyp and file an Issue if it does not okhelp:
gyp ERR! <https://github.com/nodejs/node-gyp/issues>
> bufferutil@1utf-8-validate@1.2.1 install C:\Documents and Settings\Grimm\node_modules\ws\node_mSettings\Grimm\node_modules\ws\no
odules\bufferutilde_modules\utf-8-validate
> node-gyp rebuild
C:\Documents and Settings\Grimm\node_modules\ws\node_modules\bufferutil>if notSettings\Grimm\node_modules\ws\node_modules\utf-8-validate>if deno
finedt defined npm_config_node_gyp (node "E:\Agar\Ogar-master\src\nodejs\node_modules\npmmaster\src\nodejs\node_modules
\bin\node\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) elsee
lse (node rebuild )
gyp ERR! configureUNCAUGHT errorEXCEPTION
gyp ERR! stack Error: Can'tspawn findUNKNOWN
gyp PythonERR! executablestack "python", you can set theat PYTexports._errnoException (util.js:837:11)
HONgyp envERR! variablestack at ChildProcess.spawn (internal/child_process.js:298:11)
gyp ERR! stack at failNoPythonexports.spawn (child_process.js:339:9)
gyp ERR! stack at exports.execFile (child_process.js:141:15)
gyp ERR! stack at checkPythonVersion (E:\Agar\Ogar-master\src\nodejs\node_modules\master\src\nodejs\node_mo
npm\node_modules\nodedules\npm\node_modules\node-gyp\lib\configure.js:11686:145)
gyp ERR! stack at E:\Agar\Ogar-master\src\nodejs\node_modules\npm\node_modul
es\node-gyp\lib\configure.js:7153:119
gyp ERR! stack at E:\Agar\Ogar-master\src\nodejs\node_modules\npm\node_modul
es\which\which.js:82:18
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:82:15)
gyp ERR! System Windows_NT 5.1.2600
gyp ERR! command "E:\\Agar\\Ogar-master\\src\\nodejs\\node.exe" "E:\\Agar\\Ogar-
master\\src\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js
" "rebuild"
gyp ERR! cwd C:\Documents and Settings\Grimm\node_modules\ws\node_modules\bufferuSettings\Grimm\node_modules\ws\node_modules\utf-8-v
tilalidate
gyp ERR! node -v v4.1.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! This is a bug in `node-gyp`.
gyp ERR! Try to update node-gyp and file an Issue if it does not okhelp:
gyp ERR! <https://github.com/nodejs/node-gyp/issues>
npm WARN optional dep failed, continuing utf-8-validate@1bufferutil@1.2.1
npm WARN optional dep failed, continuing bufferutil@1utf-8-validate@1.2.1
[email protected] node_modules\ws
├── [email protected]
└── [email protected]
C:\Documents and Settings\Grimm>

Okay so I am trying to install ws (websocket) in node.js but am getting this error? I tried to do, npm install python it seemed like it did something or installed it so I tried npm install ws again but once again got this error? If anyone knows what it means and how I can fix this please and thank you.

C:\Documents and Settings\Grimm>npm install ws
-
> utf-8-validate@1.2.1 install C:\Documents and Settings\Grimm\node_modules\ws\no
de_modules\utf-8-validate
> node-gyp rebuild
C:\Documents and Settings\Grimm\node_modules\ws\node_modules\utf-8-validate>if no
t defined npm_config_node_gyp (node "E:\Agar\Ogar-master\src\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 (E:\Agar\Ogar-master\src\nodejs\node_modules\
npm\node_modules\node-gyp\lib\configure.js:116:14)
gyp ERR! stack at E:\Agar\Ogar-master\src\nodejs\node_modules\npm\node_modul
es\node-gyp\lib\configure.js:71:11
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:82:15)
gyp ERR! System Windows_NT 5.1.2600
gyp ERR! command "E:\\Agar\\Ogar-master\\src\\nodejs\\node.exe" "E:\\Agar\\Ogar-
master\\src\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js
" "rebuild"
gyp ERR! cwd C:\Documents and Settings\Grimm\node_modules\ws\node_modules\utf-8-v
alidate
gyp ERR! node -v v4.1.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
> bufferutil@1.2.1 install C:\Documents and Settings\Grimm\node_modules\ws\node_m
odules\bufferutil
> node-gyp rebuild
C:\Documents and Settings\Grimm\node_modules\ws\node_modules\bufferutil>if not de
fined npm_config_node_gyp (node "E:\Agar\Ogar-master\src\nodejs\node_modules\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 (E:\Agar\Ogar-master\src\nodejs\node_modules\
npm\node_modules\node-gyp\lib\configure.js:116:14)
gyp ERR! stack at E:\Agar\Ogar-master\src\nodejs\node_modules\npm\node_modul
es\node-gyp\lib\configure.js:71:11
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:82:15)
gyp ERR! System Windows_NT 5.1.2600
gyp ERR! command "E:\\Agar\\Ogar-master\\src\\nodejs\\node.exe" "E:\\Agar\\Ogar-
master\\src\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js
" "rebuild"
gyp ERR! cwd C:\Documents and Settings\Grimm\node_modules\ws\node_modules\bufferu
til
gyp ERR! node -v v4.1.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN optional dep failed, continuing utf-8-validate@1.2.1
npm WARN optional dep failed, continuing bufferutil@1.2.1
[email protected] node_modules\ws
├── [email protected]
└── [email protected]
C:\Documents and Settings\Grimm>

Got python version 3.5.0 installed (Thanks to Hiren S.) for saying I didn't have it installed. Now I am getting this error when I try to install ws (web socket.) Still have no idea what error I am getting or what it means.

C:\Documents and Settings\Grimm>npm install python
[email protected] node_modules\python
C:\Documents and Settings\Grimm>npm install ws
-
> bufferutil@1.2.1 install C:\Documents and Settings\Grimm\node_modules\ws\node_m
odules\bufferutil
> node-gyp rebuild
C:\Documents and Settings\Grimm\node_modules\ws\node_modules\bufferutil>if not de
fined npm_config_node_gyp (node "E:\Agar\Ogar-master\src\nodejs\node_modules\npm
\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else
(node rebuild )
gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack Error: spawn UNKNOWN
gyp ERR! stack at exports._errnoException (util.js:837:11)
gyp ERR! stack at ChildProcess.spawn (internal/child_process.js:298:11)
gyp ERR! stack at exports.spawn (child_process.js:339:9)
gyp ERR! stack at exports.execFile (child_process.js:141:15)
gyp ERR! stack at checkPythonVersion (E:\Agar\Ogar-master\src\nodejs\node_mo
dules\npm\node_modules\node-gyp\lib\configure.js:86:5)
gyp ERR! stack at E:\Agar\Ogar-master\src\nodejs\node_modules\npm\node_modul
es\node-gyp\lib\configure.js:53:9
gyp ERR! stack at E:\Agar\Ogar-master\src\nodejs\node_modules\npm\node_modul
es\which\which.js:82:18
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:82:15)
gyp ERR! System Windows_NT 5.1.2600
gyp ERR! command "E:\\Agar\\Ogar-master\\src\\nodejs\\node.exe" "E:\\Agar\\Ogar-
master\\src\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js
" "rebuild"
gyp ERR! cwd C:\Documents and Settings\Grimm\node_modules\ws\node_modules\bufferu
til
gyp ERR! node -v v4.1.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! This is a bug in `node-gyp`.
gyp ERR! Try to update node-gyp and file an Issue if it does not help:
gyp ERR! <https://github.com/nodejs/node-gyp/issues>
> utf-8-validate@1.2.1 install C:\Documents and Settings\Grimm\node_modules\ws\no
de_modules\utf-8-validate
> node-gyp rebuild
C:\Documents and Settings\Grimm\node_modules\ws\node_modules\utf-8-validate>if no
t defined npm_config_node_gyp (node "E:\Agar\Ogar-master\src\nodejs\node_modules
\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) e
lse (node rebuild )
gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack Error: spawn UNKNOWN
gyp ERR! stack at exports._errnoException (util.js:837:11)
gyp ERR! stack at ChildProcess.spawn (internal/child_process.js:298:11)
gyp ERR! stack at exports.spawn (child_process.js:339:9)
gyp ERR! stack at exports.execFile (child_process.js:141:15)
gyp ERR! stack at checkPythonVersion (E:\Agar\Ogar-master\src\nodejs\node_mo
dules\npm\node_modules\node-gyp\lib\configure.js:86:5)
gyp ERR! stack at E:\Agar\Ogar-master\src\nodejs\node_modules\npm\node_modul
es\node-gyp\lib\configure.js:53:9
gyp ERR! stack at E:\Agar\Ogar-master\src\nodejs\node_modules\npm\node_modul
es\which\which.js:82:18
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:82:15)
gyp ERR! System Windows_NT 5.1.2600
gyp ERR! command "E:\\Agar\\Ogar-master\\src\\nodejs\\node.exe" "E:\\Agar\\Ogar-
master\\src\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js
" "rebuild"
gyp ERR! cwd C:\Documents and Settings\Grimm\node_modules\ws\node_modules\utf-8-v
alidate
gyp ERR! node -v v4.1.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! This is a bug in `node-gyp`.
gyp ERR! Try to update node-gyp and file an Issue if it does not help:
gyp ERR! <https://github.com/nodejs/node-gyp/issues>
npm WARN optional dep failed, continuing bufferutil@1.2.1
npm WARN optional dep failed, continuing utf-8-validate@1.2.1
[email protected] node_modules\ws
├── [email protected]
└── [email protected]
C:\Documents and Settings\Grimm>
Source Link

Node.js install ws error with python

Okay so I am trying to install ws (websocket) in node.js but am getting this error? I tried to do, npm install python it seemed like it did something or installed it so I tried npm install ws again but once again got this error? If anyone knows what it means and how I can fix this please and thank you.

C:\Documents and Settings\Grimm>npm install ws
-
> [email protected] install C:\Documents and Settings\Grimm\node_modules\ws\no
de_modules\utf-8-validate
> node-gyp rebuild
C:\Documents and Settings\Grimm\node_modules\ws\node_modules\utf-8-validate>if no
t defined npm_config_node_gyp (node "E:\Agar\Ogar-master\src\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 (E:\Agar\Ogar-master\src\nodejs\node_modules\
npm\node_modules\node-gyp\lib\configure.js:116:14)
gyp ERR! stack at E:\Agar\Ogar-master\src\nodejs\node_modules\npm\node_modul
es\node-gyp\lib\configure.js:71:11
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:82:15)
gyp ERR! System Windows_NT 5.1.2600
gyp ERR! command "E:\\Agar\\Ogar-master\\src\\nodejs\\node.exe" "E:\\Agar\\Ogar-
master\\src\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js
" "rebuild"
gyp ERR! cwd C:\Documents and Settings\Grimm\node_modules\ws\node_modules\utf-8-v
alidate
gyp ERR! node -v v4.1.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
> [email protected] install C:\Documents and Settings\Grimm\node_modules\ws\node_m
odules\bufferutil
> node-gyp rebuild
C:\Documents and Settings\Grimm\node_modules\ws\node_modules\bufferutil>if not de
fined npm_config_node_gyp (node "E:\Agar\Ogar-master\src\nodejs\node_modules\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 (E:\Agar\Ogar-master\src\nodejs\node_modules\
npm\node_modules\node-gyp\lib\configure.js:116:14)
gyp ERR! stack at E:\Agar\Ogar-master\src\nodejs\node_modules\npm\node_modul
es\node-gyp\lib\configure.js:71:11
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:82:15)
gyp ERR! System Windows_NT 5.1.2600
gyp ERR! command "E:\\Agar\\Ogar-master\\src\\nodejs\\node.exe" "E:\\Agar\\Ogar-
master\\src\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js
" "rebuild"
gyp ERR! cwd C:\Documents and Settings\Grimm\node_modules\ws\node_modules\bufferu
til
gyp ERR! node -v v4.1.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN optional dep failed, continuing [email protected]
npm WARN optional dep failed, continuing [email protected]
[email protected] node_modules\ws
├── [email protected]
└── [email protected]
C:\Documents and Settings\Grimm>
default

AltStyle によって変換されたページ (->オリジナル) /