By bundling the main Node.js executable (
node.exe) with a NodeCG instance, NodeCG can run from any folder without
requiring an installation process.
- To start, your NodeCG instance must be fully installed and configured. This means that all dependencies for both NodeCG and all bundles should be installed. Run the instance once and make sure everything works before continuing.
- Once you have verified that the instance works and that all dependencies are installed, copy
node.exefrom your Node.js installation into the root of your NodeCG instance.
- In the same directory, create a batch file or shell script with the following content:
- Double-click that batch file/shell script to run NodeCG.
With the above procedure, it is possibly to fully configure a NodeCG instance and put it on a USB stick that can be run on any PC. This is good for preparing for broadcasts ahead of time where the broadcast PC might not have Node.js, git, and a compiler chain installed.