【问题标题】:Make an outbound phone call using nexmo使用 nexmo 拨打电话
【发布时间】:2017-06-29 08:15:51
【问题描述】:

大家好,我不明白这里有什么 Make an outbound phone call using nexmo.

我确实按照这里的说明在我的 cmd 中输入了它

所以我首先这样做了:

npm install nexmo-cli -g

然后在我安装它之后,我尝试创建和应用程序 ID:

nexmo 应用程序:创建“我的语音应用程序”http://example.com/answerhttp://example.com/event --keyfile private.key

但它在我的 cmd 上说:

'nexmo' 不是内部或外部命令、可运行程序或批处理文件。

我真的无法理解博客上的内容,请大家帮我理解一下。我想在这里使用 nexmo 拨打电话

【问题讨论】:

标签: javascript node.js vonage


【解决方案1】:

您的节点模块安装所在的文件夹似乎不在您的 Windows 路径中。要找到这个文件夹运行

npm config get prefix

确保此文件夹在您的 Windows 路径中,您可以通过运行查看此文件夹

echo %path%

如果您的路径中缺少它,请查看以下答案:fixing npm path in Windows 8

【讨论】:

  • 这就是答案吗?
  • 是的。在不更新您的 %path% 的情况下,您每次都需要使用 Nexmo CLI 的完整路径,例如 node C:\Users\<username>\AppData\Roaming\npm\node_modules\nexmo-cli\lib\bin.js
  • 我是这样做的 C:\Users\{MyUsername}\AppData\Roaming\npm 然后按回车,然后我尝试了这个 nexmo app:create "My Voice App" http://example.com/answer http://example.com/event --keyfile private.key 现在它被识别但它说 could not read credentials. Please run nexmo setup
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-12-21
  • 2014-03-17
  • 2011-03-14
相关资源
最近更新 更多