Closed kyooryoo closed 6 years ago
nexmo balance 500 EUR /usr/local/lib/node_modules/nexmo-cli/lib/response.js:53 this.emitter.log(Number(response.value.toFixed(2)) + ' EUR', response.value + ' EUR'); ^
TypeError: Cannot read property 'value' of undefined
at Response.accountBalance (/usr/local/lib/node_modules/nexmo-cli/lib/response.js:53:40)
at IncomingMessage.
npm 5.6.0 node v10.2.1 mac OS
I think nexmo-cli doesn't test on new node version ? Please update lib
It seems there are a few issues with the latest node release. I'll take a look at it. Thanks for reporting this!
This is being fixed in #161 and released in v0.3.12
Steps to reproduce
Upgrade node to version 10.2.1 Upgrade nexmo-cli to latest version run "nexmo balance"
Expected behavior
return current balance value
Actual behavior
return current balance value and an error message: /usr/local/lib/node_modules/nexmo-cli/lib/response.js:53 this.emitter.log(Number(response.value.toFixed(2)) + 'EUR', response.value + ' EUR');
System configuration
Node version:10.2.1 NPM version: Operating system: