1

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?

Alexander Leithner
  • 3,169
  • 22
  • 33
swati
  • 83
  • 2
  • 9

1 Answers1

0

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

ztvmark
  • 1,319
  • 15
  • 11