首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >错误: ENOENT:没有这样的文件或目录,stat '/.VolumeIcon.icns‘

错误: ENOENT:没有这样的文件或目录,stat '/.VolumeIcon.icns‘
EN

Stack Overflow用户
提问于 2020-11-23 17:31:48
回答 1查看 6.2K关注 0票数 8

知道为什么在使用Cypress在Vue.js中运行组件测试时,我会得到这个结果吗?这是与在MacOS Catalina上运行相关的bug吗?(我问是因为我认为VolumeIcon.icns是OS的东西?)

代码语言:javascript
运行
复制
The following error was thrown by a plugin. We stopped running your tests because a plugin crashed. Please check your plugins file (/Users/MLaw/vue-app/tests/plugins/index.js)

Error: ENOENT: no such file or directory, stat '/.VolumeIcon.icns'

Error: The following error was thrown by a plugin. We stopped running your tests because a plugin crashed. Please check your plugins file (`/Users/MLaw/vue-app/tests/plugins/index.js`)
    at Object.get (/Users/MLaw/Library/Caches/Cypress/5.6.0/Cypress.app/Contents/Resources/app/packages/server/lib/errors.js:968:15)
    at EventEmitter.handleError (/Users/MLaw/Library/Caches/Cypress/5.6.0/Cypress.app/Contents/Resources/app/packages/server/lib/plugins/index.js:159:20)
    at EventEmitter.emit (events.js:310:20)
    at ChildProcess.<anonymous> (/Users/MLaw/Library/Caches/Cypress/5.6.0/Cypress.app/Contents/Resources/app/packages/server/lib/plugins/util.js:19:22)
    at ChildProcess.emit (events.js:310:20)
    at emit (internal/child_process.js:876:12)
    at processTicksAndRejections (internal/process/task_queues.js:85:21)

我的index.js看起来像:

代码语言:javascript
运行
复制
    const preprocessor = require('@cypress/vue/dist/plugins/webpack');
module.exports = (on, config) => {
  preprocessor(on, config);
  // IMPORTANT return the config object
  return config
};
EN

回答 1

Stack Overflow用户

发布于 2022-02-16 06:54:23

代码语言:javascript
运行
复制
sudo touch /.VolumeIcon.icns

我用M1 MacOS,它对我有用。

票数 8
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64973355

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档