![](/img/trans.png)
[英]Error: Cannot find module 'C:\Program Files\nodejs\node_modules\npm\bin\node_modules\npm\bin\npm-cli.js' when trying to run npm
[英]Getting cannot find \node_modules\cypress\bin\cypress error after install npm faker
在我的 cypress 項目中安裝 npm faker 后,嘗試運行 cypress 時出現以下錯誤。 我看不到 \node_modules\cypress\bin\ 文件夾中的柏樹。
請問我需要重新安裝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: []
}
安裝的時候好像有一些錯誤。 重新安裝紗線並解決問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.