Javascript Watchman:Watchman——返回的名称不正确,退出代码=null,信号=SIGABRT,stderr

Javascript Watchman:Watchman——返回的名称不正确,退出代码=null,信号=SIGABRT,stderr,javascript,testing,jestjs,Javascript,Testing,Jestjs,我试图使用Jest,但每当我进行npm测试时都会出错。我试过谷歌搜索,但没有找到任何解决办法 > jsproj@1.0.0 test /Users/abhimanyuaryan/Desktop/JSProj > jest 2018-05-08T12:40:57,551: [cli] Failed to open /Users/abhim anyuaryan/Library/L

我试图使用Jest,但每当我进行
npm测试时
都会出错。我试过谷歌搜索,但没有找到任何解决办法

> jsproj@1.0.0 test /Users/abhimanyuaryan/Desktop/JSProj  
> jest                                                    

2018-05-08T12:40:57,551: [cli] Failed to open /Users/abhim
anyuaryan/Library/LaunchAgents/com.github.facebook.watchma
n.plist for write: Not a directory                        

Watchman:  watchman --no-pretty get-sockname returned with
 exit code=null, signal=SIGABRT, stderr= 2018-05-08T12:40:
57,551: [cli] Failed to open /Users/abhimanyuaryan/Library
/LaunchAgents/com.github.facebook.watchman.plist for write
: Not a directory                                         
Macbook-2:JSProj abhimanyuaryan$npm测试

> jsproj@1.0.0 test /Users/abhimanyuaryan/Desktop/JSProj  
> jest                                                    

2018-05-08T12:40:57,551: [cli] Failed to open /Users/abhim
anyuaryan/Library/LaunchAgents/com.github.facebook.watchma
n.plist for write: Not a directory                        

Watchman:  watchman --no-pretty get-sockname returned with
 exit code=null, signal=SIGABRT, stderr= 2018-05-08T12:40:
57,551: [cli] Failed to open /Users/abhimanyuaryan/Library
/LaunchAgents/com.github.facebook.watchman.plist for write
: Not a directory                                         

请尝试
brew安装watchman
@mpontus watchman已安装