在安装NPM Faker后,Get找不到\ node_modules \ cypress \ bin \ bin \ cypress错误

发布于 2025-02-03 04:28:09 字数 681 浏览 4 评论 0原文

在我的柏树项目中安装了NPM Faker后,尝试运行柏树时会出现以下错误。我看不到\ node_modules \ cypress \ bin \文件夹中的柏树。

我需要再次安装柏树还是有人知道如何解决这个问题?

internal/modules/cjs/loader.js:892
  throw err;
  ^

Error: Cannot find module 'D:\Repo\ParcelManagementPortalUserApp\node_modules\cypress\bin\cypress'
←[90m    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:889:15)←[39m
←[90m    at Function.Module._load (internal/modules/cjs/loader.js:745:27)←[39m
←[90m    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)←[39m
←[90m    at internal/main/run_main_module.js:17:47←[39m {
  code: ←[32m'MODULE_NOT_FOUND'←[39m,
  requireStack: []
}

After installing npm faker in my cypress project, I get the following error when trying to run cypress. I cannot see the cypress inside \node_modules\cypress\bin\ folder.

Do I need to install cypress again or do anyone know how to resolve this, please?

internal/modules/cjs/loader.js:892
  throw err;
  ^

Error: Cannot find module 'D:\Repo\ParcelManagementPortalUserApp\node_modules\cypress\bin\cypress'
←[90m    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:889:15)←[39m
←[90m    at Function.Module._load (internal/modules/cjs/loader.js:745:27)←[39m
←[90m    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)←[39m
←[90m    at internal/main/run_main_module.js:17:47←[39m {
  code: ←[32m'MODULE_NOT_FOUND'←[39m,
  requireStack: []
}

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

把回忆走一遍 2025-02-10 04:28:09

安装时似乎存在一些错误。重新安装纱线并解决问题。

Seems there were some errors when the installation. Reinstall the yarn and issue resolved.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文