Mocha requires make. Can't find a make.exe that works on Windows

后端 未结 4 1943
轮回少年
轮回少年 2020-12-15 23:39

Mocha (test framework for Node.js) uses make.

For the life of me I can\'t find a compatible make.exe for Windows.

Everything works fine on my Mac.

I

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-16 00:08

    If you are using cygwin's make (cygwin/bin/make.exe), be aware that it expects tab separators in makefiles. If your editor converts tabs to spaces, you'll end up getting errors like

    makefile:23: * missing separator. Stop.

    I've read that GNU's Make for Windows, mentioned above, is ok with spaces or tabs, but I haven't tried it yet.

    See How To Use Mocha for Node Testing in Windows for more specifics.

提交回复
热议问题