0

Good day guys i can't understand what is in here Make an outbound phone call using nexmo.

I did follow the instruction here and type it in my cmd

so first i did this:

npm install nexmo-cli -g

then after i installed it i tried to create and application id:

nexmo app:create "My Voice App" http://example.com/answer http://example.com/event --keyfile private.key

but it says on my cmd that:

'nexmo' is not recognized as an internal or external command, operable program or batch file.

I really can't follow what's on blog can you please help me understand it guys. What i want here to make an outbound call using nexmo

leggetter
  • 15,248
  • 1
  • 55
  • 61
Ginxxx
  • 1,602
  • 2
  • 25
  • 54

1 Answers1

1

It appears that the folder your node modules are installed in is not on your Windows path. To find this folder run

npm config get prefix

Ensure that this folder is within your Windows path, you can view this by running

echo %path%

If it is missing from your path see these answers: fixing npm path in Windows 8

aaronbassett
  • 328
  • 2
  • 7
  • is this the answer? – Ginxxx Jun 29 '17 at 11:03
  • Yes. Without updating your `%path%` you will need to use the full path to the Nexmo CLI each time, such as `node C:\Users\\AppData\Roaming\npm\node_modules\nexmo-cli\lib\bin.js` – aaronbassett Jun 29 '17 at 11:08
  • i did it like this ```C:\Users\{MyUsername}\AppData\Roaming\npm``` then hit enter after that i tried this ```nexmo app:create "My Voice App" http://example.com/answer http://example.com/event --keyfile private.key``` now it is recognize but it says ```could not read credentials. Please run nexmo setup``` – Ginxxx Jun 29 '17 at 11:11