开玩笑--watch(npm t---watch)抛出错误 [英] jest --watch (npm t -- --watch) throwing errors

查看:315
本文介绍了开玩笑--watch(npm t---watch)抛出错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

节点[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-cliwatchman一起安装...

So we had to install jest-cli with watchman on his computer...

这篇关于开玩笑--watch(npm t---watch)抛出错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆