gpt4 book ai didi

node.js - 在 Ubuntu 上安装 Bot Framework Emulator 时出错

转载 作者:太空宇宙 更新时间:2023-11-03 21:54:25 25 4
gpt4 key购买 nike

我无法在 ubuntu 16.04 上安装 Microsoft 模拟器。

我从门户下载了 BotFramework-Emulator-3.5.29.zip 文件,然后将其解压并成功运行 npm install(但收到以下消息):

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: 7zip-bin-mac@^1.0.1(node_modules/7zip-bin/node_modules/7zip-bin-mac):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 7zip-bin-mac@1.0.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: 7zip-bin-win@^2.1.0 (node_modules/7zip-bin/node_modules/7zip-bin-win):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 7zip-bin-win@2.1.0: wanted {"os":"win32","arch":"any"} (current: {"os":"linux","arch":"x64"})

然后gulp build-app抛出以下错误:

[14:32:40] Using gulpfile /var/www/BotFramework-Emulator-3.5.29/gulpfile.js
[14:32:40] Starting 'clean'...
[14:32:40] Finished 'clean' after 23 ms
[14:32:40] Starting 'build-app'...
[14:32:40] Compiling TypeScript files using tsc version 2.1.5
[14:32:46] [tsc] > node_modules/botframework-directlinejs/built/directLine.d.ts(204,13): error TS2304: Cannot find name 'object'.
[14:32:46] Failed to compile TypeScript: Error: tsc command has exited with code:1

events.js:160
throw er; // Unhandled 'error' event
^
Error: Failed to compile: tsc command has exited with code:1

最佳答案

也许一件奇怪的事情:在 package.json 中有一个依赖"typescript": "2.2.2" ,但在你的日志中显示 Compiling TypeScript files using tsc version 2.1.5 。是不是TypeScript版本有问题?

您可以尝试将 Typescript 更新到 2.2 并再次运行所有内容吗?

看来你的错误error TS2304: Cannot find name 'object'.是因为 object是 TS2.2 中的关键字(例如,参见 reply 说明相同)

关于node.js - 在 Ubuntu 上安装 Bot Framework Emulator 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44944524/

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