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.

"Invalid Nexe binary" error after using "strip"

See original GitHub issue

Is this a BUG or a FEATURE REQUEST?: BUG

What happened: Running binary through strip breaks it.

How to reproduce it (as minimally and precisely as possible): Build binary:

$ nexe index.js --build
ℹ nexe 2.0.0-rc.34
✔ Source already downloaded
✔ Compiling result
✔ Entry: 'index.js' written to: test
✔ Finished in 0.42s

It works:

$ ./test 
Hello world

Now it doesn’t work:

$ strip test
$ ./test 

_third_party_main.js:8
    throw 'Invalid Nexe binary';
    ^
Invalid Nexe binary

Environment

  • Platform(OS/Version): Debian Sid
  • Host Node Version: v8.12.0
  • Target Node Version: v8.12.0
  • Nexe version: 2.0.0-rc.34
  • Python Version: 2.7.15+ and 3.6.6+

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
borisovgcommented, Sep 17, 2018

That works - thanks!

0reactions
crisdosyagocommented, Jul 14, 2020

That works - thanks!

This is awesome. That’s a great workaround 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

nexe - npm
Start using nexe in your project by running `npm i nexe`. ... This will cause the output to error as an "Invalid Binary"...
Read more >
Request, Error: unable to verify the first certificate
When I use your code, it throws me Error: Invalid URI "/" error message. – Mr.D. Mar 24, 2016 at 6:45. Try ...
Read more >
invalid data found when processing input ffmpeg
I would start by investigating two possible reasons for this kind of failure: (1) the program isn't using ffmpeg API correctly . To...
Read more >
Building - Chrome Developers
The Native Client SDK also has a GCC-based toolchain for building nexe files which uses the glibc ... Use -O0 when debugging, and...
Read more >
Download & Update Node.js to the Latest Version! Node v19 ...
The next LTS version, v18 is planned to take over on 2022-10-25. ... can build a Node.js binary with a custom V8 startup...
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