How to make executable file of web application (NodeJS based project) using npm pkg ?

preview_player
Показать описание
##Command for create executable:
- nodeRange node${n} or latest → In our case was node10
- platform freebsd, linux, alpine, macos, win → In our case linux
- arch x64, x86, armv6, armv7 → In our case x64
linux command: pkg . --targets node10-linux-x64
windows command: pkg . --targets node10-win-x64
macos: pkg . --targets node10-macos-x64
----------------------------------------------------------------------------------------------------------
## Run Executable in linux:
Executable access: sudo chmod +x ./pkg-nodejs //(file path=./pkg-nodejs)
Run: sudo ./pkg-nodejs
----------------------------------------------------------------------------------------------------------
## Github repository link:
Рекомендации по теме
Комментарии
Автор

Your video was the only one that worked for me. Thanks

danmontt
Автор

Bro if you can do your video in english it will be great. Even this is in hindi, but still this was very helpfull to me. Amazing work

sasindumadushan
Автор

Warning Cannot include directory %1 into executable.
The directory must be distributed with executable as %2.
%1: node_modules/zeromq/prebuilds
%2: path-to-executable/prebuilds

akshayjagtap
Автор

Hi friend.

Very good. Its work for me, BUT when im using library PLAYWRIGHT with type module its not work.

IOS ARM64 MAC

Could you share your Project on github ?

Thanks.
Hugs from Brazil.

programandocomandersonsouza