fis3
fis3 copied to clipboard
fis3 relase -L 启用 livereload 时在 node 6 里面提示 process.EventEmitter is deprecated.
测试环境:win7 64位 node 6.2 复现步骤:fis3 relase -L 启用 livereload 时在 node 6 里面提示 process.EventEmitter is deprecated.
@sunchenc 同样的问题,包括环境和 node 版本,有解决方法了吗?
其实这个只是个提示吧
Jason Liao [email protected]于2016年7月20日周三 下午9:01写道:
@sunchenc https://github.com/sunchenc 同样的问题,包括环境和 node 版本,有解决方法了吗?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fex-team/fis3/issues/742#issuecomment-233941713, or mute the thread https://github.com/notifications/unsubscribe-auth/AAmhm5aXgpvg5sBK9aYXsHIRiiMJvPytks5qXhwCgaJpZM4IoRDP .
@xiangshouding #1081 跟这个应该是一个问题。麻烦看看哟。应该是这个问题导致无法创建liveload服务,没法创建socket通讯,导致本地文件修改后,浏览器无法自动刷新
看到这个位置已经是require('events')了:
https://github.com/fex-team/fis3/blob/ffecd37c520e928853b79a5ce633d5213be87b2d/lib/fis.js#L83
fis.emitter = new(require('events').EventEmitter);
这个 warning 是谁报的?
@g8up 看看用的是哪个 fis3 ?
问题 同上。 node v6.9.2 警告信息:(node:97403) DeprecationWarning: process.EventEmitter is deprecated. Use require('events') instead. 无法livereload
node v6.9.1 fis3 v3.4.34 昨天还好好的今天突然也报这个问题了~~ (node:5360) DeprecationWarning: process.EventEmitter is deprecated. Use require('events') instead. 咋整呀~
@xiangshouding 大佬,这个issue还是无法解决么?
没解决么?
我这边已经更新到最新版本。直接执行fis3 release -L (node:5332) DeprecationWarning: process.EventEmitter is deprecated. Use require('events') instead 一样的会抛出这个warning然后阻断
系统版本:w10,node版本:6.5.0
同样错误有没有解决方案,这个只是警告提示不影响功能 node版本:6.10.0 (node:12200) DeprecationWarning: process.EventEmitter is deprecated. Use require('events') instead.
同样的报错,DeprecationWarning: process.EventEmitter is deprecated. Use require('events') instead. 但是可以先安装一个live-server,然后用当前的server来代替fis3的内置server。
Mac 下也经常会报错。我换成了自己实现 livereload。 https://github.com/onface/fis-livereload