简体   繁体   English

使用 Yeomen botbuilder 创建机器人

[英]Creating bot using Yeomen botbuilder

Iam creating a bot using Yeomen botbuilder generator.我正在使用 Yeomen botbuilder 生成器创建一个机器人。 I successfully installed botbuilder using我使用成功安装了 botbuilder

 npm install -g yo generator-botbuilder

then configured bot and when I try to run bot using npm start or node index.js Error is coming like this.然后配置 bot,当我尝试使用npm startnode index.js运行 bot 时,错误是这样的。


C:\Users\Anant\Documents\Bots\anant>node index.js
C:\Users\Anant\Documents\Bots\anant\node_modules\restify\lib\request.js:848
    Request.prototype.closed = function closed() {
                             ^

TypeError: Cannot set property closed of #<Readable> which has only a getter
    at patch (C:\Users\Anant\Documents\Bots\anant\node_modules\restify\lib\request.js:848:30)
    at Object.<anonymous> (C:\Users\Anant\Documents\Bots\anant\node_modules\restify\lib\server.js:33:1)
    at Module._compile (node:internal/modules/cjs/loader:1159:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
    at Module.load (node:internal/modules/cjs/loader:1037:32)
    at Module._load (node:internal/modules/cjs/loader:878:12)
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (C:\Users\Anant\Documents\Bots\anant\node_modules\restify\lib\index.js:10:14)
    at Module._compile (node:internal/modules/cjs/loader:1159:14)

Node.js v18.12.1

I tried to update all packages.我试图更新所有包。 Tried to install windows-build-tools again, But its coming that its depreciated and included in node only.试图再次安装 windows-build-tools,但它的贬值并仅包含在节点中。

This is due to an incompatibility between restify versions prior to v10.0.0 and Node v18.x .这是由于 v10.0.0 之前的v10.0.0版本与 Node v18.x之间的不兼容。 I've opened a pull request to update the botbuilder yo templates, but you can fix this issue by updating restify in your project to v10.0.0 .我已经打开了更新 botbuilder yo 模板的拉取请求,但您可以通过将项目中的v10.0.0更新为 v10.0.0 来解决此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为BotBuilder机器人创建REST接口而无需注册 - Creating a REST interface for BotBuilder bot without registering it 本地主机上的Botbuilder机器人未响应,但可在Azure中使用 - No response from Botbuilder bot on localhost, but works in Azure MS botbuilder Skype调用bot示例 - MS botbuilder Skype calling bot example 如何使用适用于node.js的botbuilder SDK V4为我的机器人添加提示的maxRetries - How to add a prompt's maxRetries for my bot using botbuilder SDK V4 for node.js 从 Bot Framework botbuilder 开始并得到断言错误 - Starting with Bot Framework botbuilder and get an Assertion Error 使用BotBuilder-Location时出现意外的字符串“ botbuilder-location:TitleSuffix”和“ botbuilder-location:MultipleResultsFound” - Unexpected strings “botbuilder-location:TitleSuffix” and “botbuilder-location:MultipleResultsFound” when using BotBuilder-Location AWS Lambda上的Microsoft机器人(botbuilder-aws-lambda)错误 - Microsoft bot on AWS Lambda (botbuilder-aws-lambda) errors 使用 SDK V4 中的 Microsoft Bot 框架创建 Alexa Bot - Creating An Alexa Bot Using The Microsoft Bot Framework in SDK V4 BotBuilder:使用Microsoft Open Graph验证用户身份吗? - BotBuilder: Authenticate users using Microsoft Open Graph? 从Viber机器人向botbuilder-viber发送消息时出现错误ERR_INVALID_ARG_TYPE - Error ERR_INVALID_ARG_TYPE when sending message from Viber bot to botbuilder-viber
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM