can't find module 'auto-updater'
See original GitHub issueWhy would I get this error?
It happens on this line:
if (isDevelopment || process.platform == "linux" || !electron.autoUpdater) {
return;
}
(and yes, it’s a signed app, via electron-builder).
ErrorCannot find module '../auto-updater'Error: Cannot find module '../auto-updater'
at Module._resolveFilename (module.js:438:15)
at Function.Module._resolveFilename (/Users/kunkinkan/Desktop/app/dist/osx/App.app/Contents/Resources/electron.asar/common/reset-search-paths.js:47:12)
at Function.Module._load (module.js:386:25)
at Module.require (module.js:466:17)
at require (internal/module.js:20:19)
at Object.get [as autoUpdater] (/Users/kunkinkan/Desktop/app/dist/osx/App.app/Contents/Resources/electron.asar/browser/api/exports/electron.js:17:14)
at Object.App.autoUpdate (/Users/kunkinkan/Desktop/app/dist/osx/App.app/Contents/Resources/app.asar/main.js:108:66)
at EventEmitter.<anonymous> (/Users/kunkinkan/Desktop/app/dist/osx/App.app/Contents/Resources/app.asar/main.js:1267:7)
at emitOne (events.js:96:13)App.app
at EventEmitter.emit (events.js:188:7)module.js:440
throw err;
^
Issue Analytics
- State:
- Created 7 years ago
- Comments:23 (8 by maintainers)
Top Results From Across the Web
electron-updater: Can not find module 'debug' - Stack Overflow
I was trying to implement auto-update feature using electron-updater since I am using electron-builder for the building. I am able to generate ....
Read more >Auto Update - electron-builder
Auto Update. See publish configuration for information on how to configure your local or CI environment for automated deployments. Code signing is required...
Read more >electron-updater - npm
This module allows you to automatically update your application. ... See Auto Update for more information. Supported OS: macOS (Squirrel.
Read more >Overview (Auto Update Services)
AutoUpdate feature provides several services to IDE: download and install available updates of installed modules, search and install new features from ...
Read more >Update-Module (PowerShellGet) - PowerShell | Microsoft Learn
If the module isn't found in $env:PSModulePath, an error is displayed. ... This example doesn't request confirmation to update the module to the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
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
probably yes, i just add the require to the top and it works. Strange, but ok, not your problem 😃 sorry!
I met this error when I called
app.quit()
beforeindex.js
loaded.