2017-07-06 55 views
2

我無法在Ubuntu 16.04上安裝Microsoft模擬器。在Ubuntu上安裝Bot Framework模擬器時出錯

我從網上下載門戶BotFramework-Emulator-3.5.29.zip文件,然後提取並運行npm install成功(但得到以下消息):

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected]^1.0.1(node_modules/7zip-bin/node_modules/7zip-bin-mac): 
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) 
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected]^2.1.0 (node_modules/7zip-bin/node_modules/7zip-bin-win): 
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: 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 
+0

什麼問題了嗎?模擬器或MS團隊集成?你的標題不明確 –

+0

@NicolasR在ubutu安裝BotFramework在線仿真器應用 https://github.com/Microsoft/BotFramework-Emulator/releases/tag/v3.5.29 –

+0

好,我清理標題,標籤和內容 –

回答

2

也許一個奇怪的事情:在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說明相同)

+0

感謝它也工作,但在構建吞噬應用程序還有其他問題,我從你的線索和解決它,再次感謝 –

0

添加最新依賴關係中的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" 
}, 

然後重建一飲而盡應用

build gulp-app 

然後運行與

npm start 

項目這個解決我的所有問題,一切工作順利