【问题标题】:Watchman: watchman --no-pretty get-sockname returned with exit code=null, signal=SIGABRT, stderr守望者:守望者 --no-pretty get-sockname 返回退出代码=null,信号=SIGABRT,stderr
【发布时间】:2021-08-16 23:29:42
【问题描述】:

我正在尝试使用 Jest,但每当我使用 npm test 时都会出错。我试过谷歌搜索没有找到任何解决方案

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                                         

【问题讨论】:

标签: javascript testing jestjs


【解决方案1】:

检查您的Library 文件夹。 LaunchAgents 是文件还是文件夹?在我的情况下,它是一个文件,但需要是一个文件夹。当我删除文件并创建同名文件夹时,Jest 测试开始工作

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-01-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多