Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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:

>  nodemon --exec 'mocha -R min'  

[nodemon] 1.11.0
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `'mocha -R min'`
''mocha' is not recognized as an internal or external command,
operable program or batch file.
[nodemon] app crashed - waiting for file changes before starting...
rs
[nodemon] starting `'mocha -R min'`
''mocha' is not recognized as an internal or external command,
operable program or batch file.
[nodemon] app crashed - waiting for file changes before starting...
like image 516
MToma Avatar asked May 27 '17 16:05

MToma


1 Answers

That worked fine with the line:

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

in package.json

like image 182
MToma Avatar answered Oct 29 '22 06:10

MToma