alibaba / macaca

Automation solution for multi-platform. 多端自动化解决方案
https://macacajs.github.io
MIT License
3.17k stars 419 forks source link

npm-doctor都正常,运行macaca run mobile-app-sample.test.js 报错Cannot find test framework "mocha" #987

Closed arthur-wxy closed 3 years ago

arthur-wxy commented 3 years ago

Error: Cannot find test framework "mocha" in /Users/arthurw/Desktop/sample-nodejs/macaca-test/node_modules at Runner.initFramework (/usr/local/lib/node_modules/macaca-cli/lib/run/index.js:79:13) at co.then (/usr/local/lib/node_modules/macaca-cli/lib/run/index.js:43:10) at process._tickCallback (internal/process/next_tick.js:68:7)

macaca-bot commented 3 years ago

This is the translated issue:


NPM-doctor is normal, run Macaca Run Mobile-App-Sample.test.js error cannot find find framework "mocha"

Error: Cannot Find Test Framework "MOCHA" in / users / arthurw / desktop / sample-nodejs / maca-test / node_modules AT runner.initframework (/usr/local/lib/node_modules/maca-cli/lib/run/index.js:79:13) At co.Then (/usr/local/lib/node_modules/maca-cli/lib/run/index.js:43:10) AT process._tickcallback (Internal / Process / Next_Tick.js: 68: 7)

Big Brother has time to help

xudafeng commented 3 years ago

npm install 安装下依赖

macaca-bot commented 3 years ago

This is the translated issue comment: @xudafeng


NPM Install installation depends