Can I package whole nodered project using pkg node?

Hi @TotallyInformation I actually managed it using pkg.
by adding this package.json
image

Then run "pkg ."

It has 3 outputs for different OS:

then I can use the .exe file on my command prompt, I just need to put --userDir arguments.
image

And it works just like "npm start" on your alternate-installer.

The advantage of doing this is you just have to copy the node-red-master-win.exe to any other computer along with the "data" folder. and you can run node-red on any computer :slight_smile:
Without installing nodejs.

Thanks!

Regards,
Henjoe

6 Likes