Open subhasisbanik opened 7 years ago
same error here
Here as well
So, turns out this issue is due to a dependency on an old version of secp256k1 that does not build on Windows due to relying on a shell script. This has long since been fixed, but this still depends on it. If BitPay does not support building on Windows systems, then maybe system requirements should be listed.
For more details see cryptocoinjs/secp256k1-node/issues/20
I think the issue here is actually with the bitauth library, which depends on the old version of secp256k1.
Any resolution found around this issue? I am also facing same issue.
I believe this is the solution. https://www.npmjs.com/package/windows-build-tools
Please let me know if this worked.
any solution ?
This library just does not work for windows!
I am facing same issue in mac while installing bitpay-rest. Its terminates CI when building secp256k1. Anyone found solution about this error?
I tried to npm install bitpay-rest in windows 10. But I am facing the below issue. npm install bitpay-rest
G:\bitpay-node\node_modules\secp256k1>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 ) '.' is not recognized as an internal or external command, operable program or batch file. gyp: Call to './utils/has_lib.sh gmpxx && ./utils/has_lib.sh gmp' returned exit status 1 while in binding.gyp. 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_modules\npm\node_modules\node-gyp\lib\configure.js:305:16) gyp ERR! stack at emitTwo (events.js:106:13) gyp ERR! stack at ChildProcess.emit (events.js:191:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12) gyp ERR! System Windows_NT 10.0.10586 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd G:\bitpay-node\node_modules\secp256k1 gyp ERR! node -v v6.11.0 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok npm WARN bitpay-node@1.0.0 No description npm WARN bitpay-node@1.0.0 No repository field. npm ERR! Windows_NT 10.0.10586 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "bitpay-rest" npm ERR! node v6.11.0 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLEnpm ERR! secp256k1@1.1.5 install:
node-gyp rebuild
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the secp256k1@1.1.5 install script 'node-gyp rebuild'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the secp256k1 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 information on how to open an issue for this project with: npm ERR! npm bugs secp256k1 npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls secp256k1 npm ERR! There is likely additional logging output above.npm ERR! Please include the following file with any support request: npm ERR! G:\bitpay-node\npm-debug.log
I saw in previous issues that bitcore isn't supported in Windows back in 2014. Is there any update on that cause in https://bitcore.io/guides/wallet-service I am unable to find configuration steps for Windows.