mocha缺少参数path
发布于 1天前 作者 coffhe 75 次浏览 来自 问答

mocha init的时候

error: missing required argument `path'

直接输入mocha时

.nvm/versions/node/v0.12.7/lib/node_modules/mocha/lib/utils.js:626
    throw new Error("cannot resolve path (or pattern) '" + path + "'");
Error: cannot resolve path (or pattern) 'test'
at Object.lookupFiles (/Users/coffee/.nvm/versions/node/v0.12.7/lib/node_modules/mocha/lib/utils.js:626:15)
at /Users/coffee/.nvm/versions/node/v0.12.7/lib/node_modules/mocha/bin/_mocha:316:30
at Array.forEach (native)
at Object.<anonymous> (/Users/coffee/.nvm/versions/node/v0.12.7/lib/node_modules/mocha/bin/_mocha:315:6)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3

请问一下,这个问题该怎么解决,小白求指教

回到顶部