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.

Running AppImage shows error 'cannot find /tmp/.../browser/init.js'

See original GitHub issue
  • Version: 20.15.1
  • Target: Linux

After npx electron-builder --linux running the .AppImage on Ubuntu fails with with error below.

~/Projects/XXXX$ ./build/electron/XXXX-X.X.X-x86_64.AppImage
module.js:545
    throw err;
    ^

Error: Cannot find module '/tmp/.mount_XXXXUh8n4M/resources/electron.asar/browser/init.js'
    at Function.Module._resolveFilename (module.js:543:15)
    at Function.Module._load (module.js:473:25)
    at Function.Module.runMain (module.js:683:10)
    at startup (bootstrap_node.js:196:16)
    at bootstrap_node.js:622:3

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:17
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
Stefanoughcommented, Jun 7, 2018

I was having the same issue in Ubuntu 16.04. Downgrading electron-builder to 20.14.7 solved my particular build issue.

1reaction
yishncommented, May 29, 2018

Seems like this issue did not exist in v20.14.7.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Run Instagram IGdm.appimage - Ask Ubuntu
appimage (which I downloaded from http://igdm.me/). I try to run it via terminal and it show me this error adie@adie-X550DP:~/Desktop/Apps$ ./ ...
Read more >
qt - application cannot get the running AppImage path
But when I distribute my application as AppImage on Linux, this breaks. It returns the path where the running AppImage was mounted, e.g....
Read more >
Run Instagram IGdm.appimage on freshly install Linux Mint
I try to run it via terminal and it show me this error ... Error: Cannot find module '/tmp/. ... at startup (bootstrap_node.js:196:16)...
Read more >
Can't Run AppImage on Ubuntu 22.04? Here's How to Fix it
You need to install the missing library and try again. Here's how. ... If you directly try to run an AppImage with double...
Read more >
Cannot find module 'app' at Module. - ADocLib
Error : Cannot Find Module '/Applications/Atom.App/***/Electron.Asar/Browser/Init.Js' While Attaching Debugger To Nodejs. Stepbystep tutorial to building a ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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