In order to download necessary tools and to install nodecg-io using the cli you need network access.
You'll need the following tools:
Native Build Tools
Some services depend on packages that require native build tools. You ONLY need to install these if you want to use a service that depends on native modules or if you want to install a development version.
The services that require these include StreamDeck, Midi and Serial. Please note that this list might not be up to date.
Here's how to install the native build tools on the most popular operating systems, if you need them:
For Windows, you'll need the Visual Studio Build Tools, if you have Visual Studio installed you should already have them. If you don't have Visual Studio just install the Visual Studio Build Tools by running the following command as an Administrator:
npm install -g windows-build-tools
For Linux, you'll need a C++ compiler and some other packages. On Ubuntu/Debian based operating systems run the following command:
sudo apt install build-essential libusb-1.0-0-dev libasound2-dev libudev-dev
For other linux distros you'll need the corresponding packages, just search on the internet how the packages are named for your specific distro.
For macOS, you'll need the Xcode command line tools. To install them run the following command:
Install the nodecg-io cli
Install the nodecg-io cli using the following command:
npm install -g nodecg-io-cli
Note: If you are running on linux, you may need to use
sudo if your npm installation uses a non-writeable path (default on Ubuntu apt packages, does usually not apply to installs using nvm)
Install nodecg-io using the nodecg-io cli
With the nodecg-io cli installed you can run this command inside a nodecg installation to install nodecg-io:
You will get a prompt which asks you which version you want to install.
By selecting a actual version (e.g.
0.1) you create a production install that downloads the required packages from npm and setups a npm workspace to install all dependencies. Here you can choose which services you want to install.
developmentyou create a development install that clones the nodecg-io git repo and builds everything from scratch. We only recommend a dev install if you are sure that you want to contribute to nodecg-io. Here you always must install all services.
For starters we recommend using the latest non-development version.
nodecg-io will always be installed into a
nodecg-io/ directory inside your nodecg installation so that your bundles and all bundles from nodecg-io are separated. The cli will add this path to the loaded bundles in your nodecg configuration automatically, you don't need to worry about it.
If you want to every change your nodecg-io installation to add/remove a service or change the version, you can always re-run
nodecg-io install. If a nodecg-io installation is found its options will be preselected in the prompt. Re-running
nodecg-io install will also update all packages to the latest patch version, if you have a production installation, and pull the repository and rebuild, if you have a development installation.
When starting nodecg you should see that all nodecg-io related bundles should be loaded and that you can you can now access nodecg-io in your nodecg dashboard.
Now you can either install a already existing bundle that uses nodecg-io or create a new bundle.
If you want uninstall nodecg-io you can run the following command:
This will remove the
nodecg-io directory inside your nodecg installation and also will remove it from the loaded bundle paths in your nodecg configuration.