codeforequity-at / botium-bindings

The Selenium for Chatbots
http://www.botium.at
MIT License
108 stars 33 forks source link

When I ran sample watson project through npm run emulatorBrowser It gives Error Cannot find module 'clear' #99

Open stephenws opened 5 years ago

stephenws commented 5 years ago

Hi

I am executing TestMyBot Watson Sample Project through npm run emulatorBrowser It gives me Error : Error: Cannot find module 'clear'

Logs:

StephenMac:watson Stephen$ npm run emulatorBrowser

testmybot-sample-watson@1.0.0 emulatorBrowser /Users/Stephen/Desktop/Project_Data/ChatSample/testmybot-master/samples/watson npm install botium-cli && botium-cli emulator browser --convos ./spec/convo --config ./testmybot.json

jsonpath@1.0.0 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

testmybot-sample-watson@1.0.0 /Users/Stephen/Desktop/Project_Data/ChatSample/testmybot-master/samples/watson └─┬ botium-cli@0.0.26 └── jsonpath@1.0.0 extraneous (git+https://github.com/codeforequity-at/jsonpath.git#b76762056427dbcd149db7211f60ee0b10ed4dce)

npm WARN testmybot-sample-watson@1.0.0 No description npm WARN testmybot-sample-watson@1.0.0 No repository field. /Users/Stephen/Desktop/Project_Data/ChatSample/testmybot-master/samples/watson/node_modules/yargs/yargs.js:1133 else throw err ^

Error: Cannot find module 'clear' at Function.Module._resolveFilename (module.js:469:15) at Function.Module._load (module.js:417:25) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object. (/Users/Stephen/Desktop/Project_Data/ChatSample/testmybot-master/samples/watson/node_modules/botium-cli/src/emulator/browser/index.js:4:15) at Module._compile (module.js:570:32) 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)

npm ERR! Darwin 16.7.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "emulatorBrowser" npm ERR! node v6.11.0 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! testmybot-sample-watson@1.0.0 emulatorBrowser: npm install botium-cli && botium-cli emulator browser --convos ./spec/convo --config ./testmybot.json npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the testmybot-sample-watson@1.0.0 emulatorBrowser script 'npm install botium-cli && botium-cli emulator browser --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 browser --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