nodemon在node v6下bug已修复,请重新安装最新版本
原因是mac下的fsevent使用了弃用的原生api
Node.js v6: v8::ObjectTemplate::Set() with non-primitive values is deprecated
#473
See [0] and [1]: starting with node.js v6, setting non-primitive values
on FunctionTemplate and ObjectTemplate instances is discouraged; v7 will
downright disallow it. Update the code base.
[0] nodejs/node#6216
[1] nodejs/node#6228
Refs: #127
然后把依赖fsevent的chokidar更新到最新
https://github.com/paulmillr/chokidar
升级一下版本就好了
备注 chokidar是非常有用的,A neat wrapper around node.js fs.watch / fs.watchFile / fsevents.
"semantic-release": "4.3.5"
},
"dependencies": {
- "chokidar": "^1.2.0",
+ "chokidar": "^1.4.3",
"debug": "^2.2.0",
"es6-promise": "^3.0.2",
"ignore-by-default": "^1.0.0",
https://github.com/remy/nodemon/issues/824#issuecomment-215821222
备忘一下