Installation
You will need to install some packages if you're using Linux/Ubuntu/CentOS/AlmaLinux. Then you can install the JagoTraffic Worker package.
Install Jago Traffic in 5 minutes ⏱!
Prerequisites
Before installing, make sure you have:
- Node.js version 20.0 or above (which can be checked by running
node -v
). You can use nvm to manage multiple Node.js versions on a single machine.- When installing Node.js, it is recommended to check all checkboxes related to dependencies.
- Operating System:
Check the installed version of Node.js and npm with the following command:
node -v
npm -v
Currently the Android operating system is not supported
Installation
Quick Install
This automatic installation only for Linux Operating System. You can install the required package using the following command:
- Curl
- Wget
curl -fsSL https://cdn.jagocode.id/scripts/jagotraffic/install.sh | bash
wget -qO- https://cdn.jagocode.id/scripts/jagotraffic/install.sh | bash
Manual Installation
Install NodeJS
For more complete installation, you can visit the official NodeJS website
- Windows (fnm)
- Linux & Mac OS (nvm)
# Download and install fnm:
winget install Schniz.fnm
# Download and install Node.js:
fnm install 22
# Verify the Node.js version:
node -v # Should print "v22.13.1".
# Verify npm version:
npm -v # Should print "10.9.2".
# Download and install nvm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
# Download and install Node.js:
nvm install 22
# Verify the Node.js version:
node -v # Should print "v22.13.1".
nvm current # Should print "v22.13.1".
# Verify npm version:
npm -v # Should print "10.9.2".
Linux/Ubuntu Packages
sudo apt install git ca-certificates fonts-liberation libasound2 libatk-bridge2.0-0 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 lsb-release wget xdg-utils -y
CentOS/AlmaLinux Packages
yum install git alsa-lib.x86_64 atk.x86_64 cups-libs.x86_64 gtk3.x86_64 libXcomposite.x86_64 libXcursor.x86_64 libXdamage.x86_64 libXext.x86_64 libXi.x86_64 libXrandr.x86_64 libXScrnSaver.x86_64 libXtst.x86_64 pango.x86_64 xorg-x11-fonts-100dpi xorg-x11-fonts-75dpi xorg-x11-fonts-cyrillic xorg-x11-fonts-misc xorg-x11-fonts-Type1 xorg-x11-utils -y && yum update nss -y
MacOS
Install Homebrew if not already installed
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Install required packages
brew install git wget cairo pango glib gtk+3 nspr nss dbus
brew tap homebrew/cask-fonts
brew install --cask font-liberation
brew install --cask xquartz
Windows
Download NodeJS & Git directly from the official site then install it. Use NodeJS version 20 or higher.
Install Jago Traffic Worker
Installation Global
To install Jago Traffic globally:
- npm
- Yarn
- pnpm
npm install -g jagotraffic
yarn global add jagotraffic
pnpm add -g jagotraffic
Using npx (no global installation)
If you want to run Jago Traffic without permanent installation:
npx jagotraffic
Installation Verification
To ensure successful installation, run the following command:
jagotraffic --version
This command will display the latest version of Jago Traffic.
Install PM2 (optional)
If you want to use PM2 to manage your traffic-worker, you can install it with:
- npm
- Yarn
- pnpm
npm install -g pm2
yarn global add pm2
pnpm add -g pm2
Update Jago Traffic Worker
Jika sudah menginstal Jago Traffic dan ingin memperbaruinya ke versi terbaru:
- npm
- Yarn
- pnpm
npm install -g jagotraffic@latest
yarn global add jagotraffic@latest
pnpm add -g jagotraffic@latest
Now you can run Worker on your local device or VPS.
Problems?
If you experience problems running the Worker, double-check the configuration and ensure that all dependencies are installed correctly. If the problem persists, see the documentation or contact technical support.
Enjoy using Jago Traffic! 🚀