因此,我的ava >=3.0有一个问题,2.4.0所有的测试都执行得很好,我有一个ts项目编译js并执行所有js测试文件。当迁移到3.0 (或3.8)时,我尝试了这两种方法,我一直收到这个错误.
✖ Internal error
Error: EEXIST: file already exists, mkdir '/Users/rage/repos/*****/****-api/node_modules/.cache/ava'
Error: EEXIST: file already exists, mkdir '/Users/rage/repos/*****/****-api/node_modules/.cache/ava'如果缓存文件(节点_模块/节点_模块/. cache /ava)不存在,我将得到以下错误.
✖ Couldn’t find any files to test
✖ Internal error
Error: ENOENT: no such file or directory, mkdir '/Users/rage/repos/*****/****-api/node_modules/.cache/ava'
Error: ENOENT: no such file or directory, mkdir '/Users/rage/repos/*****/****-api/node_modules/.cache/ava'所以不确定我是不是错过了一步
发布于 2020-06-12 07:14:21
您使用的是什么Node.js版本?AVA至少需要Node.js 10.18。这可能是因为在旧版本中,mkdir函数的行为可能有所不同。
发布于 2020-11-05 13:19:36
在我的例子中,我将Node.js版本从10.0.0升级到12.18.1,然后能够修复Ava内部错误问题。
https://stackoverflow.com/questions/62312948
复制相似问题