In this article, we will explain in detail:
How to install
How to fix errors
How to uninstall
1.How to install
Uninstalling Older Versions (run if necessary)
If you have Track CLI v2 and earlier versions installed, you will need to uninstall the older versions prior to installing Track CLI (v3 or later).
Start the terminal application and execute the following command:
For Linux and MacOS
sudo rm $(which track)
For Windows
rmdir /s %homepath%\.track
Installing Node.js
Track CLI requires Node.js v16 or later.
We recommend the following methods for official website
Download the installer from the official website
Install using nvm (Node Version Manager)
Once Node.js is installed, launch the terminal application and execute each of the following commands. If the correct version is displayed, you have succeeded.
node --version
npm --version
Installing Track CLI
Execute the following command in the terminal application.
The Track CLI will be installed.
npm install --global track-cli
track --version
2.How to fix errors
If you ran into an error, these could be the reason why:
1) You are connecting through a proxy server
If you are using a proxy server, you need to set the following environment variables.
HTTP_PROXY and HTTPS_PROXY: Proxy server URL
Format: http://<username>:<password>@<host>:<port>
Example: http://proxy.example.co.jp:8080
[NOTE] track CLI only supports Basic authentication.
[NOTE] How to set up proxy servers depends on the environment you are using.
[NOTE] If you have further questions, please contact your network administrator.
Track CLI v2 or earlier migration guide
If you were using Track CLI v2 or earlier, please reconfigure your environment variables as follows
If PROXY_USER and PROXY_PASSWORD are not set (if you do not need proxy server authentication), leave the value of HTTP_PROXY as it is. Then, go to 4.
Connect the PROXY_USER and PROXY_PASSWORD values with
:
.Insert the value from 1. immediately after http:// in HTTP_PROXY, followed by @.
Copy the value of HTTP_PROXY into HTTPS_PROXY as well.
Example of previous environment variables:
> PROXY_USER`: myuser.
> PROXY_PASSWORD: mypassword
> HTTP_PROXY: http://proxy.example.co.jp
New environment variable example:
> HTTP_PROXY: http://myuser:mypassword@proxy.example.co.jp
> HTTPS_PROXY: http://myuser:mypassword@proxy.example.co.jp
2) Other reasons
If you tried the steps above and still have issues, please contact us via Support Chat.
3.How to uninstall
Run the following command in your terminal.
npm remove --global track-cli