原文:npm run dev時 一堆報錯 (node:37693) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency

node: Warning: Accessing non existent property cat of module exports inside circular dependency Use node trace warnings ... to show where the warning was created node: Warning: Accessing non existent ...

2021-11-29 18:12 0 4389 推薦指數:

查看詳情

終端警告Warning: Accessing non-existent property '...' of module exports inside circular dependency

在使用commander和shelljs開發終端命令行的過程中,發現只要一運行所開發的命令,就會出現大段警告,類似這樣: 在百度上搜了下,說是node版本14導致的問題,要將node降版本到12,可是公司前端統一都用14,降版本肯定是不行的。。。。 所以我又去github上看了一圈,發現也有 ...

Fri Mar 25 00:31:00 CST 2022 0 3394
npm run build 遇到報錯 [BABEL] No "exports" main defined in

根據猜測,應該是低版本 nodejs 下創建的項目,在高版本 nodejs 中,因版本差異導致的編譯問題 解決方法 修改node_modules\@babel\helper-compilation-targets\package.json中exports的配置,具體如下: 轉 ...

Wed Oct 13 01:58:00 CST 2021 0 850
npm run dev 報錯

1.install警告: 可忽略 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents): npm WARN ...

Tue Oct 17 22:42:00 CST 2017 0 6237
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM