[英]Getting cannot find \node_modules\cypress\bin\cypress error after install npm faker
After installing npm faker in my cypress project, I get the following error when trying to run cypress.在我的 cypress 项目中安装 npm faker 后,尝试运行 cypress 时出现以下错误。 I cannot see the cypress inside \node_modules\cypress\bin\ folder.我看不到 \node_modules\cypress\bin\ 文件夹中的柏树。
Do I need to install cypress again or do anyone know how to resolve this, please?请问我需要重新安装cypress还是有人知道如何解决这个问题?
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: []
}
Seems there were some errors when the installation.安装的时候好像有一些错误。 Reinstall the yarn and issue resolved.重新安装纱线并解决问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.