久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

找不到模塊“fs/promises"Electron JS

Cannot find module #39;fs/promises#39; Electron JS(找不到模塊“fs/promisesElectron JS)
本文介紹了找不到模塊“fs/promises"Electron JS的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

早上好,

我在 Vue JS 中創建了一個程序,它與我在 main.js 文件中創建的 API 連接以執行系統命令.

I have created a program in Vue JS, this connects with an API that I have created in a main.js file to execute system commands.

我遇到的問題是,使用電子進行生產編譯時出現以下錯誤:

The problem I have is that when compiling for production with electron I get the following error:

我使用命令 npm run electron: build

I use the command npm run electron: build

當我使用 npm run electron:serve work 時沒有問題

When I use npm run electron:serve work without problems

有人知道為什么會出現錯誤以及如何解決嗎?謝謝

Anyone have any idea why is the error and how to fix it? Thanks

推薦答案

我前幾天也遇到過這個問題.我意識到試圖解決另一個問題,我刪除了 node_modules 文件夾和 package-lock.json 文件,然后運行 ??npm install 命令.這使得構建因fs/promises"而失敗.這個問題有兩種解決方案:

I experienced this issue a few days ago as well. I realized that trying to fix another issue, I deleted the node_modules folder and the package-lock.json file, then run the npm install command. This made the build to fail with 'fs/promises'. There are 2 solutions to this issue:

  1. 下載最新的穩定 Node 版本.這應該有 'fs/promises' 模塊并將解決問題.
  2. 刪除 node_modules 文件夾并恢復舊的 package-lock.json 文件,以確保包版本保持不變.然后運行 ??npm install 命令,問題應該就解決了.
  1. Download the latest stable Node version. This should have the 'fs/promises' module and will fix the issue.
  2. Delete the node_modules folder and bring back the old package-lock.json file to ensure that the package versions remain the same. Then run the npm install command and the issue should be fixed.

這篇關于找不到模塊“fs/promises"Electron JS的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

How to fix BrowserWindow is not a constructor error when creating child window in Electron renderer process(在 Electron 渲染器進程中創建子窗口時如何修復 BrowserWindow 不是構造函數錯誤) - IT屋-程序員軟件開發技術
Electron webContents executeJavaScript : Cannot execute script on second on loadURL(Electron webContents executeJavaScript:無法在第二個 loadURL 上執行腳本)
how to use electron browser window inside components in angular-cli?(如何在angular-cli的組件內使用電子瀏覽器窗口?)
ElectronJS - sharing redux store between windows?(ElectronJS - 在 Windows 之間共享 redux 存儲?)
How to access camera/webcamera inside electron app?(如何在電子應用程序中訪問相機/網絡攝像頭?)
How to getCurrentPosition via navigator.geolocation in Electron app?(如何通過電子應用程序中的 navigator.geolocation 獲取當前位置?)
主站蜘蛛池模板: 盗摄精品av一区二区三区 | 国产精品视频免费观看 | 国产91丝袜在线18 | 夜夜爽99久久国产综合精品女不卡 | 久久成人精品视频 | 精品一二三区 | 天堂素人约啪 | 成人精品一区二区 | 成人精品一区二区三区四区 | 91精品在线观看入口 | 狠狠入ady亚洲精品经典电影 | 国产精品成人一区二区三区 | www.日日夜夜 | 国产小视频精品 | 亚洲精品久久久久久久久久久久久 | 精品综合久久 | 日本a视频 | 国产精品99久久久久久久久久久久 | 国产高潮av | 美国十次成人欧美色导视频 | 一区二区在线免费观看视频 | av中文字幕在线播放 | 亚洲最色网站 | 国产传媒| 国产精品视频在线观看 | 欧美精品 在线观看 | 日韩欧美在线观看 | 亚洲人人 | 一级做a爰片久久毛片免费看 | 亚洲一区三区在线观看 | 欧美激情国产日韩精品一区18 | 久草成人网 | 亚洲黄色国产 | 欧美a在线| 国产午夜精品视频 | 最新中文字幕 | 欧美日韩国产传媒 | 欧美一区二区免费视频 | 日韩午夜 | 久久99精品久久 | 午夜精品一区二区三区在线观看 |