nwjs / nw-gyp

native addon build tool for node-webkit
MIT License
195 stars 46 forks source link

edge-js build failing with nw-gyp #148

Open deepakblr opened 3 years ago

deepakblr commented 3 years ago

Description

I want to use edge-js with nw.js. And as edge-js is not pure js package , I have to rebuild it with nw-gyp to get it working. (https://github.com/nwjs/nw.js/wiki/using-node-modules)

Tried to re-build edge-js with nw-gyp, but facing compilation issues. The error snapshot is attached

Followed below 2 links to install nw-gyp https://github.com/nwjs/nw-gyp#installation

Build edge-js with nw https://github.com/nwjs/nw.js/wiki/Build-native-modules-with-nw-gyp

Package version

"edge-js": "^15.5.2"

Commands used to build nw-gyp configure --target=0.42.3 nw-gyp rebuild --target=0.42.3

nw-gyp@3.6.5 gyp info using node@12.14.1 | win32 | x64

nw.js v0.42.3

Error Message & Stack Trace

image

image

Additional information

I am able to build edge-js using node-gyp successfully, however nw-gyp it is failing

Relevant Information

npm configurations

\edge-js> npm config get ; cli configs metrics-registry = "https://registry.npmjs.org/" scope = "" user-agent = "npm/6.13.4 node/v12.14.1 win32 x64"

; userconfig C:\Users\.npmrc msvs_version = "2015" node_gyp = "C:\Users\\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js" python = "python2.7"

; globalconfig C:\Users\\AppData\Roaming\npm\etc\npmrc node_gyp = "C:\Users\\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js"

; builtin config undefined prefix = "C:\Users\\AppData\Roaming\npm"

; node bin location = C:\Program Files\nodejs\node.exe ; cwd = E:\compile_node_modules\node_modules\edge-js ; HOME = C:\Users\ ; "npm config ls -l" to show all defaults.