Hi,
I am trying to install appium 1.4.12 using node.js, but its not happening. I am getting the below error in cmd. [node.js version used is node-v0.10.32-x64]
C:\Users\lvuser2\npm>npm update -g appium
npm WARN optional dep failed, continuing [email protected]
[email protected] install
C:\Users\lvuser2\AppData\Roaming\npm\node_modules
\appium\node_modules\ws\node_modules\utf-8-validate
node-gyp rebuild
C:\Users\lvuser2\AppData\Roaming\npm\node_modules\appium\node_modules\ws\node_mo
dules\utf-8-validate>node "C:\Program
Files\nodejs\node_modules\npm\bin\node-gyp
-bin\…..\node_modules\node-gyp\bin\node-gyp.js"
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:\Program
Files\nodejs\node_modules\npm\nod
e_modules\node-gyp\lib\configure.js:103:14)
gyp ERR! stack at
C:\Program Files\nodejs\node_modules\npm\node_modules\node
-gyp\lib\configure.js:64:11
gyp ERR! stack at
Object.oncomplete (evalmachine.:107:15)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command “node” "C:\Program
Files\nodejs\node_modules\npm\node_modu
les\node-gyp\bin\node-gyp.js" “rebuild”
gyp ERR! cwd
C:\Users\lvuser2\AppData\Roaming\npm\node_modules\appium\node_modul
es\ws\node_modules\utf-8-validate
gyp ERR! node -v v0.10.32
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok-
npm WARN optional dep failed, continuing
[email protected]
|
[email protected] install
C:\Users\lvuser2\AppData\Roaming\npm\node_modules\app
ium\node_modules\ws\node_modules\bufferutil
node-gyp rebuild
C:\Users\lvuser2\AppData\Roaming\npm\node_modules\appium\node_modules\ws\node_mo
dules\bufferutil>node "C:\Program
Files\nodejs\node_modules\npm\bin\node-gyp-bin
\…..\node_modules\node-gyp\bin\node-gyp.js" 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:\Program
Files\nodejs\node_modules\npm\nod
e_modules\node-gyp\lib\configure.js:103:14)
gyp ERR! stack at
C:\Program Files\nodejs\node_modules\npm\node_modules\node
-gyp\lib\configure.js:64:11
gyp ERR! stack at
Object.oncomplete (evalmachine.:107:15)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command “node” "C:\Program Files\nodejs\node_modules\npm\node_modu
les\node-gyp\bin\node-gyp.js" “rebuild”
gyp ERR! cwd
C:\Users\lvuser2\AppData\Roaming\npm\node_modules\appium\node_modul
es\ws\node_modules\bufferutil
gyp ERR! node -v v0.10.32
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm WARN optional dep failed, continuing [email protected]
npm WARN engine [email protected]: wanted:
{“node”:“>=0.10.40”} (current:
{“node”:"0.10
.32",“npm”:“1.4.28”})
npm WARN engine [email protected]: wanted:
{“node”:“>=0.10.40”} (current: {“node”:
“0.10.32”,“npm”:“1.4.28”})
npm WARN engine [email protected]: wanted:
{“node”:“>=0.10.40”} (current:
{“node”:"0.1
0.32",“npm”:“1.4.28”})
npm WARN engine [email protected]: wanted:
{“node”:“>=0.10.40”} (current: {“node”:
“0.10.32”,“npm”:“1.4.28”})
npm WARN engine [email protected]: wanted:
{“node”:“>=0.10.40”} (current:
{“node”:"0.10
.32",“npm”:“1.4.28”})
npm WARN engine [email protected]: wanted:
{“node”:“>=0.10.40”} (current:
{“node”:"0.1
0.32",“npm”:“1.4.28”})
|
[email protected] install
C:\Users\lvuser2\AppData\Roaming\npm\node_modules
\appium\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modul
es\utf-8-validate
node-gyp rebuild
C:\Users\lvuser2\AppData\Roaming\npm\node_modules\appium\node_modules\socket.io\
node_modules\engine.io\node_modules\ws\node_modules\utf-8-validate>node
"C:\Prog
ram
Files\nodejs\node_modules\npm\bin\node-gyp-bin\…..\node_modules\node-gyp\
bin\node-gyp.js" 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:\Program Files\nodejs\node_modules\npm\nod
e_modules\node-gyp\lib\configure.js:103:14)
gyp ERR! stack at
C:\Program Files\nodejs\node_modules\npm\node_modules\node
-gyp\lib\configure.js:64:11
gyp ERR! stack at
Object.oncomplete (evalmachine.:107:15)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command “node” "C:\Program
Files\nodejs\node_modules\npm\node_modu
les\node-gyp\bin\node-gyp.js" “rebuild”
gyp ERR! cwd
C:\Users\lvuser2\AppData\Roaming\npm\node_modules\appium\node_modul
es\socket.io\node_modules\engine.io\node_modules\ws\node_modules\utf-8-validate
gyp ERR! node -v v0.10.32
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm WARN optional dep failed, continuing
[email protected]
\
[email protected] install
C:\Users\lvuser2\AppData\Roaming\npm\node_modules\app
ium\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\b
ufferutil
node-gyp rebuild
|
C:\Users\lvuser2\AppData\Roaming\npm\node_modules\appium\node_modules\socket.io\
node_modules\engine.io\node_modules\ws\node_modules\bufferutil>node
"C:\Program
Files\nodejs\node_modules\npm\bin\node-gyp-bin\…..\node_modules\node-gyp\bin\
node-gyp.js" 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:\Program Files\nodejs\node_modules\npm\nod
e_modules\node-gyp\lib\configure.js:103:14)
gyp ERR! stack at
C:\Program Files\nodejs\node_modules\npm\node_modules\node