It's definitely possible ... If you want a dashboard, you could start with the Node-Red-Electron app:
And then from there it looks like there are some config examples to make Electron portable:
If you don't care about having a UI there are a ton of examples of packaging and running a Node.js script as a portable app, or just run the portable version of Node.js configured to run node-red.
You could also try the alternative installer that I just released. It will let you install Node-RED anywhere. Though you still need Node.js installed so it isn't a complete solution. But a little tweaking and a manual unpack of Node.js to the memory stick would work.
It creates a single executable of your code and all its dependencies for all major platforms, NodeJS is included. We successfully use it for deployments of our software at work.
I gave it a quick shot with Node-RED, but was unsuccessful. I imagine it needs some manual tweaks, like including the web resources at the proper location. However, I haven't had the time to try again, yet.
Hmm, interesting. However, looking at the details, it seems to me as though many Nodes would fail to be properly packaged due to the way that it moves assets around. Might be a lot of work to get going.
Yes, that's where I hit a dead end with Node-RED. You can include additional assets into the package's internal filesystem manually. I haven't invested much time into this, as there were other more important issues at work.
However, getting a single executable for Node-RED without any further dependencies would be a great plus for deployments.
While true, it might be easier to dump node.js executables into the same parent project folder (if using my style installation). I must have a look at that to see if it is feasible.
My electron project can be built into a single exe if required https://github.com/dceejay/electron-node-red
The project is made for Mac so builds on that platform, but should be adaptable for others (and I would happily take contributions to improve it)