gpt4 book ai didi

node.js - Bot 服务不适用于 Node.js 。错误找不到模块 'botbuilder'

转载 作者:搜寻专家 更新时间:2023-10-31 22:27:36 26 4
gpt4 key购买 nike

我使用 Node.js 和 LUIS 通过“Azure 门户”创建了一个机器人服务。创建 Bot 后,我​​可以看到“聊天界面”永远加载,并显示一条消息“正在加载聊天界面”。 Bot developer interface

所以我通过“dev.botframework.com”中的“我的机器人”打开了 Bot 并测试了连接。它因以下错误而失败。 Bot chat window

当我在聊天框中按“嗨”时,我可以在日志中看到错误“Exception while executing function: Functions.messages”。 mscorlib:错误:找不到模块“botbuilder”

我可以在“package.json”中看到“botbuildr”依赖项,如下所示。

{
"name": "luisbot",
"version": "1.0.0",
"description": "",
"main": "index.js",
"dependencies": {
"botbuilder": "^3.7.0",
"botbuilder-azure": "3.0.2"
},
"devDependencies": {
"restify": "^4.3.0"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}

对错误有什么建议吗?

最佳答案

我遇到了同样的问题,并通过在 kudu 控制台中运行 npm install 解决了这个问题。

转到您的机器人服务的设置-选项卡并单击以打开“高级设置”。您可以在开发工具下找到“高级工具”(kudu)。打开 Debug Consolecd 到你有 package.json 的文件夹(对我来说是 D:\home\site\wwwroot\messages) 并运行 npm install

之后,您可以在 dev.botframework.com 中与机器人通信,尽管聊天界面在 Azure 门户中仍然无法使用。

关于node.js - Bot 服务不适用于 Node.js 。错误找不到模块 'botbuilder',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43534600/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com