npm-watch: Not working on mac OS
Hello, I’m trying to use it on a mac but the script is not triggering the command when the watched files are modified. (I’ve tested the same configuration on a Ubuntu OS and is working correctly).
This is my configuration:
"watch": {
"compile-less": {
"patterns": ["src/*"],
"extensions": "less"
}
},
"scripts": {
"compile-less:watch": "npm-watch"
}
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 2
- Comments: 19 (5 by maintainers)
Commits related to this issue
- Fix triggering when using "inline" pattern for conifig Fix #35 Fix #56 — committed to lexoyo/npm-watch by lexoyo 5 years ago
I found I had to use the fuller watch like below for it to work for me:
Something like the following would not work:
Further to this, I was getting
EADDRINUSEerrors every second or so restarts. I’m not sure what caused it. However I found that for my purposes,nodemonworked. It’s unfortunately not as flexible with possible (separate) configurations asnpm-watch.I have the same issue. 😦