我正在尝试使用Bot Framework Emulator测试Microsoft BotBUilder示例。
我已经克隆了BotBuilder repo,并通过了自述说明npm install
,但是当我运行npm start
时,出现此错误
/home/ronald/Desktop/botbuilder-samples/samples/javascript_nodejs/02.echo-bot/node_modules/csv-parse/lib/index.js:20
super({...{readableObjectMode: true}, ...opts})
^^^
SyntaxError: Unexpected token ...
at createScript (vm.js:53:10)
at Object.runInThisContext (vm.js:95:10)
at Module._compile (module.js:543:28)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/ronald/Desktop/botbuilder-samples/samples/javascript_nodejs/02.echo-bot/node_modules/csv/lib/index.js:6:10)
npm ERR! Linux 4.15.0-72-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! node v7.10.1
npm ERR! npm v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! echobot@1.0.0 start: `node ./index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the echobot@1.0.0 start script 'node ./index.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the echobot package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./index.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs echobot
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls echobot
npm ERR! There is likely additional logging output above.
答案 0 :(得分:1)
可以请您尝试:
super({readableObjectMode: true, ...opts})
我认为您不需要传播第一个物体。
答案 1 :(得分:1)