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
cmd.exe
as an administrator npm cache clean --force
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.
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.