Nexe: Build documentation unclear

Created on 26 Sep 2017  Â·  5Comments  Â·  Source: nexe/nexe

This is a

  • [ ] Bug Report
  • [ ] Feature Request
  • [X] Other


The output is pretty self explanatory:

➜  ~/tmp/nexe nexe --build
ℹ nexe 2.0.0-rc.6
✔ Node source extracted to: /home/cyborg/tmp/nexe/.nexe/6.11.3
✔ Node binary compiled
✔ Executable written to: nexe
✔ Finsihed in 1033.303s
➜  ~/tmp/nexe nexe
ℹ nexe 2.0.0-rc.6
â ‹ Fetching prebuilt binary
Error: linux-x64-6.11.3 not available, create it using the --build flag
    at NexeCompiler.<anonymous> (/home/cyborg/.config/yarn/global/node_modules/nexe/lib/compiler.js:208:35)
    at step (/home/cyborg/.config/yarn/global/node_modules/nexe/lib/compiler.js:40:23)
    at Object.next (/home/cyborg/.config/yarn/global/node_modules/nexe/lib/compiler.js:21:53)
    at fulfilled (/home/cyborg/.config/yarn/global/node_modules/nexe/lib/compiler.js:12:58)
    at process._tickCallback (internal/process/next_tick.js:109:7)



  • Platform(OS/Version): Ubuntu GNOME 17.04
  • Host Node Version: v6.11.3
  • Target Node Version: N/A
  • Nexe version: nexe 2.0.0-rc.6
  • Python Version: 2.7.13 and 3.5.3

Most helpful comment

BTW, I didn't actually use 2 hours to figure this out, if you're worried about that. It's more like 10 minutes with a lot of breaks in between.

All 5 comments

I figured it out, apparently you always need to use the --build flag, and not just on the initial build. The documentation could be expanded to clarify this.

I actually figured it out, turns out it already compiled the code in the first command. It just assumed I wanned to compile index.js when I'm not giving it a file as argument. This wasn't clear to me...

Right, --build tells it to use downloaded/built source.
If you don't provide an entry file eg nexe <entry-file> it will choose the pkg#main file. Or index.js

I should update the logging to make the clear once its finished what was used as input

BTW, I didn't actually use 2 hours to figure this out, if you're worried about that. It's more like 10 minutes with a lot of breaks in between.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ricardopolo picture ricardopolo  Â·  6Comments

frederikhors picture frederikhors  Â·  3Comments

vickylance picture vickylance  Â·  4Comments

affanshahid picture affanshahid  Â·  3Comments

IngwiePhoenix picture IngwiePhoenix  Â·  5Comments