Node.js 在Ubuntu上安装Bot Framework Emulator时出错
我无法在ubuntu 16.04上安装microsoft emulator 我从门户下载了Node.js 在Ubuntu上安装Bot Framework Emulator时出错,node.js,botframework,Node.js,Botframework,我无法在ubuntu 16.04上安装microsoft emulator 我从门户下载了BotFramework-Emulator-3.5.29.zip文件,然后将其解压缩并成功运行npm install(但收到以下消息): 然后,gulpbuildapp抛出以下错误: [14:32:40] Using gulpfile /var/www/BotFramework-Emulator-3.5.29/gulpfile.js [14:32:40] Starting 'clean'... [14:32
BotFramework-Emulator-3.5.29.zip
文件,然后将其解压缩并成功运行npm install
(但收到以下消息):
然后,gulpbuildapp
抛出以下错误:
[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”
,但在您的日志中显示使用tsc版本2.1.5编译typescript文件。打字脚本版本不是有问题吗
能否尝试将Typescript更新为2.2并再次运行所有操作
您的错误似乎是error TS2304:找不到名称“object”。
是由于object
是TS2.2中的关键字(例如,请参见此说明)在package.json中添加最新的依赖项,可能是开发后某些依赖项版本发生了更改
我更改了package.json中的所有版本
"dependencies": { "gulp-debug": "2.1.2",
"gulp-filter": "4.0.0",
"gulp-flatmap": "1.0.0",
"gulp-inject": "4.2.0",
"gulp-rename": "1.2.2",
"gulp-tsc": "1.2.6",
"gulp-util": "3.0.8",
"license-list": "0.1.3",
"object-assign": "4.1.0",
"tslib": "1.5.0",
"typescript": "2.2.2",
"vinyl": "2.0.1",
"vinyl-fs": "2.4.4"
},
然后重新构建gulp应用程序
build gulp-app
然后使用
npm start
这解决了我所有的问题,一切顺利你有什么问题?Emulator,还是MS团队集成?你的头衔不是explicit@NicolasR在ubutu中安装BotFramework Emulator应用程序好的,我清理了标题、标签和内容谢谢它也起了作用,但在构建gulp应用程序时还有其他问题,我从您那里得到了线索并解决了,再次感谢
npm start