question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

can't find module 'auto-updater'

See original GitHub issue

Why 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:closed
  • Created 7 years ago
  • Comments:23 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Jun 14, 2016

probably yes, i just add the require to the top and it works. Strange, but ok, not your problem 😃 sorry!

0reactions
liukuncommented, Sep 19, 2018

I met this error when I called app.quit() before index.js loaded.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found