【发布时间】:2017-11-19 15:11:13
【问题描述】:
节点[1265] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
运行npm t -- --watch 时会发生这种情况。在我的系统节点 v7.4.0 上它工作正常。在我的同事(节点 v7.9)上它失败了。
这里的这个问题问的是确切的问题:
Testing with Jest failed with Error: Error watching file for changes: EMFILE
但是“安装守望者”修复不起作用。
我们做了brew install watchman 然后brew postinstall watchman
然后当再次尝试运行npm t -- --watch 时,我们得到一个新错误:
/Users/user/Library/LaunchAgents/com.github.facebook.watchman.plist:不允许操作
还有其他人遇到jest watch 的问题吗?
普通的npm t 可以工作。
【问题讨论】:
标签: node.js reactjs jestjs watchman