Line 9, "isWin" checking processs.env.platform should just be process.platform. Running 'bitpay' from Windows CMD prompt yields:
Error: Cannot find module 'undefined/.bitpay/config.json'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
because process.env.platform is undefined. Node v0.10.33
https://github.com/bitpay/node-bitpay-client/blob/master/lib/rest-client.js
Line 9, "isWin" checking processs.env.platform should just be process.platform. Running 'bitpay' from Windows CMD prompt yields:
Error: Cannot find module 'undefined/.bitpay/config.json' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17)
because process.env.platform is undefined. Node v0.10.33