Error: ENOENT: no such file or directory, rename
See original GitHub issueWhich version of electron-builder are you using?
- 20.13.4:
Which version of electron-updater are you using ?
- 2.21.10
What target are you building for?
- Windows:
somehow file get deleted after renaming. I am attaching my logs file
[2018-05-19 16:56:31.101] [info] Checking for update
[2018-05-19 16:56:32.534] [info] Generated new staging user ID: 7672894f-c36e-5a65-bb2b-518ac8acc279
[2018-05-19 16:56:33.870] [info] Found version 6.5.7 (url: giddh-app Setup 6.5.7.exe)
[2018-05-19 16:56:33.872] [info] Downloading update from giddh-app Setup 6.5.7.exe
[2018-05-19 16:56:33.882] [info] Downloading update from giddh-app Setup 6.5.7.exe
[2018-05-19 16:56:33.906] [info] No cached update available
[2018-05-19 16:56:33.906] [info] No cached update available
[2018-05-19 17:10:00.126] [info] New version 6.5.7 has been downloaded to C:\Users\govi2\AppData\Roaming\giddh-app\installer-6.5.7.exe
[2018-05-19 17:10:12.298] [error] Error: Error: ENOENT: no such file or directory, rename 'C:\Users\govi2\AppData\Roaming\giddh-app\temp-installer-6.5.7.exe' -> 'C:\Users\govi2\AppData\Roaming\giddh-app\installer-6.5.7.exe'
at C:\Users\govi2\AppData\Local\Programs\giddh-app\resources\app.asar\node_modules\electron-updater\src\BaseUpdater.ts:84:13
From previous event:
at NsisUpdater.executeDownload (C:\Users\govi2\AppData\Local\Programs\giddh-app\resources\app.asar\node_modules\electron-updater\out\BaseUpdater.js:164:7)
at C:\Users\govi2\AppData\Local\Programs\giddh-app\resources\app.asar\node_modules\electron-updater\src\NsisUpdater.ts:31:23
From previous event:
at NsisUpdater.doDownloadUpdate (C:\Users\govi2\AppData\Local\Programs\giddh-app\resources\app.asar\node_modules\electron-updater\out\NsisUpdater.js:181:7)
at C:\Users\govi2\AppData\Local\Programs\giddh-app\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:361:25
at Generator.next (<anonymous>)
From previous event:
at NsisUpdater.downloadUpdate (C:\Users\govi2\AppData\Local\Programs\giddh-app\resources\app.asar\node_modules\electron-updater\out\AppUpdater.js:539:7)
at C:\Users\govi2\AppData\Local\Programs\giddh-app\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:337:49
From previous event:
at NsisUpdater.doCheckForUpdates (C:\Users\govi2\AppData\Local\Programs\giddh-app\resources\app.asar\node_modules\electron-updater\out\AppUpdater.js:502:7)
at C:\Users\govi2\AppData\Local\Programs\giddh-app\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:279:25
at Generator.next (<anonymous>)
at runCallback (timers.js:789:20)
at tryOnImmediate (timers.js:751:5)
at processImmediate [as _immediateCallback] (timers.js:722:5)
From previous event:
at NsisUpdater._checkForUpdates (C:\Users\govi2\AppData\Local\Programs\giddh-app\resources\app.asar\node_modules\electron-updater\out\AppUpdater.js:433:7)
at NsisUpdater.checkForUpdates (C:\Users\govi2\AppData\Local\Programs\giddh-app\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:217:35)
at NsisUpdater.checkForUpdatesAndNotify (C:\Users\govi2\AppData\Local\Programs\giddh-app\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:231:41)
at new e (C:\Users\govi2\AppData\Local\Programs\giddh-app\resources\app.asar\index.js:1:884)
at e.openWindows (C:\Users\govi2\AppData\Local\Programs\giddh-app\resources\app.asar\index.js:1:4917)
at App.<anonymous> (C:\Users\govi2\AppData\Local\Programs\giddh-app\resources\app.asar\index.js:1:2095)
at emitTwo (events.js:131:20)
at App.emit (events.js:214:7)
[2018-05-19 17:10:37.248] [info] Install on explicit quitAndInstall
[2018-05-19 17:10:37.251] [error] Error: Error: No valid update available, can't quit and install
at C:\Users\govi2\AppData\Local\Programs\giddh-app\resources\app.asar\node_modules\electron-updater\src\BaseUpdater.ts:112:26
at Generator.next (<anonymous>)
at Generator.tryCatcher (C:\Users\govi2\AppData\Local\Programs\giddh-app\resources\app.asar\node_modules\bluebird\js\release\util.js:16:23)
at PromiseSpawn._promiseFulfilled (C:\Users\govi2\AppData\Local\Programs\giddh-app\resources\app.asar\node_modules\bluebird\js\release\generators.js:97:49)
at C:\Users\govi2\AppData\Local\Programs\giddh-app\resources\app.asar\node_modules\bluebird\js\release\generators.js:201:15
at NsisUpdater.install (C:\Users\govi2\AppData\Local\Programs\giddh-app\resources\app.asar\node_modules\electron-updater\out\BaseUpdater.js:198:7)
at C:\Users\govi2\AppData\Local\Programs\giddh-app\resources\app.asar\node_modules\electron-updater\src\BaseUpdater.ts:17:36
at Generator.next (<anonymous>)
at Generator.tryCatcher (C:\Users\govi2\AppData\Local\Programs\giddh-app\resources\app.asar\node_modules\bluebird\js\release\util.js:16:23)
at PromiseSpawn._promiseFulfilled (C:\Users\govi2\AppData\Local\Programs\giddh-app\resources\app.asar\node_modules\bluebird\js\release\generators.js:97:49)
at C:\Users\govi2\AppData\Local\Programs\giddh-app\resources\app.asar\node_modules\bluebird\js\release\generators.js:201:15
at NsisUpdater.quitAndInstall (C:\Users\govi2\AppData\Local\Programs\giddh-app\resources\app.asar\node_modules\electron-updater\out\BaseUpdater.js:86:7)
at App.<anonymous> (C:\Users\govi2\AppData\Local\Programs\giddh-app\resources\app.asar\index.js:1:4165)
at emitOne (events.js:116:13)
at App.emit (events.js:211:7)
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (1 by maintainers)
Top Results From Across the Web
NPM: ENOENT: no such file or directory, rename
When I got this error I looked for all running instances of node in my task manager (i use process explorer on windows)...
Read more >How to fix: npm ERR! enoent ENOENT: no such file or ...
The error message was npm ERR! enoent ENOENT: no such file or directory, rename 'D:\\WebApp\\node_modules\\lz-string' ...
Read more >When 'npm install' > "ENOENT: no such file or directory ...
I fixed it by uninstalling node, npm and everything with it (and reinstalled everything afterwards of course). 1
Read more >ENOENT: no such file or directory - Laracasts
Hey guys, Fresh laravel 5.6 installation on debian with Npm version 5.6.0 giviz@localhost:/mnt/hgfs/Code/project.test/gui$ npm install --no-bin-links npm ...
Read more >npm err! enoent enoent: no such file or directory, rename
Add a comment. 2. If you ever get this error, the hotfix is to follow these steps: delete node-modules folder run command npm...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@donald-s Thx for advised.
autoUpdater.autoDownload = false; should do it