簡體   English   中英

錯誤:未捕獲錯誤:EPERM:不允許操作,在Windows上安裝電子應用程序時重命名

[英]Error: Uncaught Error: EPERM: operation not permitted, rename when installing electron app on windows

我正在創建一個Electron應用程序,當我嘗試在Windows 7 32位計算機上安裝它時,出現以下錯誤:

Uncaught Error: EPERM: operation not permitted, rename 'D:\final-app\library\db\tmp_login.db~' -> 'D:\final-app\library\db\tmp_login.db'

我試過了

  1. 以管理員身份運行cmd.exe
  2. 運行npm cache clean --force
  3. 運行npm install -g npm@latest --force

但是我仍然遇到同樣的錯誤。 難道我做錯了什么?

就我而言,它在Windows上有幫助:

清理緩存

npm cache clean --force

以管理員身份全局安裝最新版本的npm:

npm install -g npm@latest --force

清理緩存

npm cache clean --force

嘗試再次安裝組件。

npm ERR! 錯誤:EPERM:不允許操作,請重命名

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM