jest --watch (npm t -- --watch) throwing errors
Asked Answered
S

2

1

node[1265] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)

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:

Testing with Jest failed with Error: Error watching file for changes: EMFILE


However the fix "install watchman" didn't work.

We did brew install watchman then brew postinstall watchman

Then when trying to run npm t -- --watch again we get a new error:

/Users/user/Library/LaunchAgents/com.github.facebook.watchman.plist: Operation not permitted

Anyone else running into a problem with jest watch?

The regular npm t will work.

Schuck answered 16/6, 2017 at 18:46 Comment(0)
S
-1

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

Schuck answered 16/6, 2017 at 19:27 Comment(1)
Could you please elaborate on how has this resolved the problem? Thanks! :)Lanny
S
0

After installing watchman, you can give it a full permission to the launch agents by sudo chown -R $(whoami):staff ~/Library/LaunchAgents.
It will resolve the permission issue.

Straight answered 11/9, 2018 at 8:4 Comment(0)
S
-1

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

Schuck answered 16/6, 2017 at 19:27 Comment(1)
Could you please elaborate on how has this resolved the problem? Thanks! :)Lanny

© 2022 - 2024 — McMap. All rights reserved.