简体   繁体   中英

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

I'm creating an Electron app and when I try to install it on a Windows 7 32-bit machine I'm getting the following error:

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

I tried to

  1. run cmd.exe as an administrator
  2. run npm cache clean --force
  3. run npm install -g npm@latest --force

But I'm still getting the same error. Am I doing something wrong?

In my situation it helped on windows:

clean cache with

npm cache clean --force

install the latest version of npm globally as admin:

npm install -g npm@latest --force

clean cache with

npm cache clean --force

Try to install your component once again.

npm ERR! Error: EPERM: operation not permitted, rename

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM