botium-bindings
botium-bindings copied to clipboard
When I ran sample watson project through npm run emulator It gives Error SyntaxError: Unexpected token *
Hi
I am executing TestMyBot Watson Sample Project through npm run emulator It gives me Error : *SyntaxError: Unexpected token '
Logs:
StephenMac:watson Stephen$ npm run emulator
[email protected] emulator /Users/Stephen/Desktop/Project_Data/ChatSample/testmybot-master/samples/watson npm install botium-cli && botium-cli emulator console --convos ./spec/convo --config ./testmybot.json
[email protected] postinstall /Users/Stephen/Desktop/Project_Data/ChatSample/testmybot-master/samples/watson/node_modules/botium-cli/node_modules/jsonpath node lib/aesprim.js > generated/aesprim-browser.js
[email protected] /Users/Stephen/Desktop/Project_Data/ChatSample/testmybot-master/samples/watson └─┬ [email protected] └── [email protected] extraneous (git+https://github.com/codeforequity-at/jsonpath.git#b76762056427dbcd149db7211f60ee0b10ed4dce)
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
/Users/Stephen/Desktop/Project_Data/ChatSample/testmybot-master/samples/watson/node_modules/string-kit/lib/format.js:624
base = round( n / ( 1000 ** logDiv3 ) , roundStep[ logMod ] ) ;
^
SyntaxError: Unexpected token *
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.
npm ERR! Darwin 16.7.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "emulator"
npm ERR! node v6.11.0
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! [email protected] emulator: npm install botium-cli && botium-cli emulator console --convos ./spec/convo --config ./testmybot.json
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] emulator script 'npm install botium-cli && botium-cli emulator console --convos ./spec/convo --config ./testmybot.json'.
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 testmybot-sample-watson package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm install botium-cli && botium-cli emulator console --convos ./spec/convo --config ./testmybot.json
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs testmybot-sample-watson
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls testmybot-sample-watson
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request: npm ERR! /Users/Stephen/Desktop/Project_Data/ChatSample/testmybot-master/samples/watson/npm-debug.log
Exponentiation operator requires node 7, https://node.green/#ES2016-features-exponentiation------operator.
This issue was fixed in 0.8.15 version of string-kit at about the same time as you posted this issue,
run npm update to get a working version.