Open Torrriate opened 8 years ago
hey @Torrriate do you have Python installed? From the looks of the error message it looks like it cannot find Python:
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:114:14)
Will try to install. Though it's not mentioned in the dependencies on the npm-site. Will report on the result. Thx so far.
First report: Installed latest python build 3.5. Response: ... gyp ERR! configure error gyp ERR! stack Error: Python executable "C:\Program Files\Python\Python3.5\python.exe" is v3.5.0, which is not supported by gyp. gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0. ...
Ok. Getting >= v2.5.0 & < 3.0.0. then and will re-try and re-report.
Second report: Python 2.7.10 seemed to work
However, CONSOLE-RESPONSE:
nodelua@0.3.3 install C:\Users\a.michalik\AppData\Roaming\npm\node_modules\nod elua node-gyp rebuild
C:\Users\a.michalik\AppData\Roaming\npm\nodemodules\nodelua>if not defined npm config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin ....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild )
'sed' is not recognized as an internal or external command,
operable program or batch file.
gyp: Call to 'find /usr/include /usr/local/include $NODELUA_INCLUDE -name lua.h
| sed s/lua.h//' returned exit status 255. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: gyp
failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Program Files\nodejs\node_module
s\npm\node_modules\node-gyp\lib\configure.js:355:16)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074
:12)
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\a.michalik\AppData\Roaming\npm\node_modules\nodelua
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs
\node_modules\npm\bin\npm-cli.js" "install" "-g" "nodelua"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! code ELIFECYCLE
npm ERR! nodelua@0.3.3 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the nodelua@0.3.3 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the nodelua package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls nodelua
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request: npm ERR! C:\Users\a.michalik\npm-debug.log
Does it mean the nodelua installer requires my lua.h to found be in a >specific< path?
Hmm, not entirely sure, this time it is saying sed
is not found. Don't think I ever tried to install nodelua
on a windows machine, or ever heard of anyone who had. And unfortunately I do not have one available to try and test this on.
I see. Thx for the replies so far.
Getting the same error on my Windows 10 machine.
Use choco install sed
, with "choco" coming from Chocolatey.
This should solve the problem.
CONSOLE-RESPONSE:
C:\Users\myUser\AppData\Roaming\npm\nodemodules\nodelua>if not defined npm config_node_gyp (node "C:\Program Files\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 (C:\Program Files\nodejs\node_modules\npm\nod e_modules\node-gyp\lib\configure.js:114:14) gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node -gyp\lib\configure.js:69:11 gyp ERR! stack at FSReqWrap.oncomplete (evalmachine.:95: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\myUser\AppData\Roaming\npm\node_modules\nodelua
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs
\node_modules\npm\bin\npm-cli.js" "install" "-g" "nodelua"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! code ELIFECYCLE
npm ERR! nodelua@0.3.3 install:
node-gyp rebuild
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the nodelua@0.3.3 install script 'node-gyp rebuild'. npm ERR! This is most likely a problem with the nodelua package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get their info via: npm ERR! npm owner ls nodelua npm ERR! There is likely additional logging output above.npm ERR! Please include the following file with any support request: npm ERR! C:\Users\myUser\npm-debug.log
LOG-FILE: npm-debug.log.txt