开玩笑--watch(npm t---watch)抛出错误 [英] jest --watch (npm t -- --watch) throwing errors
问题描述
节点[1265](FSEvents.framework)FSEventStreamStart:register_with_server:错误:f2d_register_rpc()=>(空)(-22)
node[1265] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
在运行npm t -- --watch
时会发生这种情况.在我的系统节点v7.4.0上,它可以正常工作.在我的同事(节点v7.9)上,它失败了.
This happens when running npm t -- --watch
. On my system node v7.4.0 it works fine. On my fellow coworker (node v7.9) it fails.
这里的问题是确切的问题:
This question here asks the exact problem:
测试Jest失败错误:监视文件以查看更改时出错:EMFILE
但是,安装守望者"修复程序无效.
However the fix "install watchman" didn't work.
我们先brew install watchman
然后brew postinstall watchman
然后,当再次尝试运行npm t -- --watch
时,我们会收到一个新错误:
Then when trying to run npm t -- --watch
again we get a new error:
/Users/user/Library/LaunchAgents/com.github.facebook.watchman.plist:不允许操作
/Users/user/Library/LaunchAgents/com.github.facebook.watchman.plist: Operation not permitted
还有其他人遇到jest watch
问题吗?
Anyone else running into a problem with jest watch
?
常规npm t
将起作用.
推荐答案
所以我们不得不在他的计算机上将jest-cli
与watchman
一起安装...
So we had to install jest-cli
with watchman
on his computer...
这篇关于开玩笑--watch(npm t---watch)抛出错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!