nodemon ''mocha' is not recognized as an internal or external command, operable program or batch file

前端 未结 8 681
被撕碎了的回忆
被撕碎了的回忆 2021-01-04 06:25

Running a test for a nodejs project on windows 10 with the line in package.json as:

\"test\": \"nodemon --exec \'mocha -R min\'\"

I get:

8条回答
  •  孤城傲影
    2021-01-04 06:53

    "test": "mocha **/*.test.js",
    "test-watch": "nodemon --exec \"npm test\""
    

    For Run

    npm run test-watch
    

提交回复
热议问题