Closed J7a4s0m5ine closed 1 year ago
Ah, I found a related issue
this problem was solved by using a few hints from this comment: https://github.com/nwjs/nw-gyp/issues/122#issuecomment-748871910
My solution slightly different. I opened files C:\Users\username\.nw-gyp\0.72.0\common.gypi
and C:\Users\username\.nw-gyp\0.72.0\toolchain.gypi
Did a search and replace in both files for this
'v8_host_byteorder%': '<!(python -c "import sys; print sys.byteorder")'
and replaced with this:
'v8_host_byteorder%': '<!(python -c "import sys; print(sys.byteorder)")',
Then used the following commands to configure and re-build
nw-gyp --python= C:\Python27\python.exe configure --target=0.72.0
nw-gyp rebuild --python="C:\Python27\python.exe" --target=0.72.0
You'll need to replace your paths and versions with the ones you're intending to use.
Solved with work around
Running by specifying python version is failing
nw-gyp --python="C:\Python27\python.exe" configure
Contextual information: Windows nw-gyp @ v3.6.6 node @ v18.13.0
I've tried numerous things including setting python in NPM config and system path to python2