Cannot resolve path in Mocha

前端 未结 7 1242
被撕碎了的回忆
被撕碎了的回忆 2020-12-30 21:45

I am currently using Nitrous, which shouldn\'t matter, but I needed to install mocha so I typed in:

npm install - g mocha.

Everything insta

7条回答
  •  有刺的猬
    2020-12-30 22:48

    The error you are getting is consistent with not having a file named test/unit and doing this:

    $ mocha test/unit
    

    Check that the file exists. (Actually, without a .js extension, I'd expect a directory rather than a file.) Check that you are in the right location when you issue your command.

提交回复
热议问题