简体   繁体   English

安装 npm faker 后出现找不到 \node_modules\cypress\bin\cypress 错误

[英]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.

相关问题 错误:尝试运行 npm 时找不到模块“C:\Program Files\nodejs\node_modules\npm\bin\node_modules\npm\bin\npm-cli.js” - Error: Cannot find module 'C:\Program Files\nodejs\node_modules\npm\bin\node_modules\npm\bin\npm-cli.js' when trying to run npm 错误:找不到模块 'C:\Users\nguye\AppData\Local\nodejs\node_modules\npm\bin\npm-cli.js' - Error: Cannot find module 'C:\Users\nguye\AppData\Local\nodejs\node_modules\npm\bin\npm-cli.js' “ npm install --save” cmd说我“ rm -rf node_modules && npm install”之后找不到缓冲垫片 - “npm install --save” cmd says cannot find buffer-shims after I “rm -rf node_modules && npm install” 找不到模块 'C:\\node_modules\\npm\\bin\\npm-cli.js - Cannot find module 'C:\node_modules\npm\bin\npm-cli.js 错误:找不到模块“C:\Users\senyo\AppData\Roaming\npm\node_modules\expo-cli\bin\expo.js” - Error: Cannot find module 'C:\Users\senyo\AppData\Roaming\npm\node_modules\expo-cli\bin\expo.js' Windows 上的 node-gyp 5:找不到 npm\\node_modules\\node-gyp\\bin\\node-gyp.js - node-gyp 5 on Windows: Cannot find npm\node_modules\node-gyp\bin\node-gyp.js 节点 Nodemon 错误:找不到模块 'C:\\Program Files\\nodejs\\node_modules\\nodemon\\bin\\' - Node Nodemon Error: Cannot find module 'C:\Program Files\nodejs\node_modules\nodemon\bin\' 有没有办法让 npm install 在本地 node_modules 目录(the.bin 目录)中安装“bin”可执行文件? - Is there a way to get npm install to install "bin" executables in the local node_modules directory (the .bin directory)? 安装 Drivelist 时找不到模块 'C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin' - Cannot find module 'C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin' While installing Drivelist 错误:在 ReactJS 项目中运行 npm 后找不到模块“serialize-javascript”,即使它存在于目录 node_modules - Error: Cannot find module 'serialize-javascript' after running npm start in ReactJS project, even though there it exists in directory node_modules
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM