【发布时间】: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
【问题讨论】:
-
试试
brew install watchman -
@mpontus watchman 已安装
标签: javascript testing jestjs