Open thgh opened 9 years ago
Having same problem here on a Win 7 machine. I installed node-gyp prior to installing bitpay.
C:\Program Files\nodejs\node_modules\bitpay\node_modules\bitauth\node_modules\bi
tcore\node_modules\bignum>node "C:\Program Files\nodejs\node_modules\npm\bin\nod
e-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" configure build
gyp ERR! configure error
gyp ERR! stack Error: spawn ENOENT
gyp ERR! stack at errnoException (child_process.js:980:11)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:771:
34)
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" "configure" "build"
gyp ERR! cwd C:\Program Files\nodejs\node_modules\bitpay\node_modules\bitauth\no
de_modules\bitcore\node_modules\bignum
gyp ERR! node -v v0.10.24
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
npm WARN optional dep failed, continuing fsevents@0.2.1
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" "bitpay"
npm ERR! node v0.10.24
npm ERR! npm v2.1.2
npm ERR! code ELIFECYCLE
npm ERR! bignum@0.9.0 install: `node-gyp configure build`
npm ERR! Exit status 1
Hi guys, unfortunately for the time being, there is no support for Windows since bitcore has some native dependencies. It is possible to build bitcore on Windows and thus node-bitpay-client would also work, however until bitcore2 is ready we won't be supporting Windows.
If you are gluttons for punishment, @unusualbob can point you at how to build bitcore on Windows.
Thanks for the reply @gordonwritescode. I've tried everything I could think of to get this to work. I just need the library to generate a ClientID, so I guess it's time to fire up a Linux VM.
Thanks @gordonwritescode - It would be awesome if this was noted at the top of the page. If you follow this from bitpay.com you never get a warning about this. The error messaging leads you to try to install visual studio, so no help there, just more time wasted.
I would agree with @killerapp on this matter. Noting this somewhere in the instructions (i.e. bitpay.com/api for example) would have been nice. I spent days trying to work around my bignum problems. Installing a Ubuntu in a VM along with everything I needed for Node got me what I needed in a few hours.
Duly noted guys. I'll make sure to update the readme and include this information on bitpay.com/api
It failed on Win8.1 and on Ubuntu 12.04 in a VM.
Edit: It works here on Ubuntu 14.04, I guess there were some dependencies missing such as node-gyp?