For creating portable binaries of Node RED, I (as per my post):
- Install Node RED in my directory that I will be working in
- Install any modules in the same directory, that I want 'hard installed' - as if it comes with Node RED by default
- Patch my package.json
- Run pkg
I have not done this for the standard install, so not sure how it will react - I have never used the standard installer, so my knowledge with it, is extremely limited.
ideally you will patch the package.json file and run pkg in the folder that contains the installed Node RED location - but that will package up any other global Node app you have installed (not just Node RED)