Error when installing the CLI

If you are using a npm version < 8.11.0 or the k5 command is not found on your machine, try reinstall the CLI with the following command:

npm install -g <download folder>/CLI.tar

If you followed the instructions to install the CLI you might have received a "Permission denied (publickey)" error when executing the npm install command:

npm ERR! Error while executing:
npm ERR! C:\Program Files\Git\mingw64\bin\git.EXE ls-remote -h -t ssh://git@github.com/Downloads/CLI.tar.git npm ERR!
npm ERR! git@github.com: Permission denied (publickey). npm ERR! fatal: Could not read from remote repository. npm ERR!
npm ERR! Please make sure you have the correct access rights npm ERR! and the repository exists. npm ERR!
npm ERR! exited with error code: 128 npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\APa\AppData\Roaming\npm-cache\_logs\2021-03-17T08_13_42_137Z-debug.log 

This is because you might have used the command someway similar to this

npm install --location=global Downloads/CLI.tar 

The above command is referring to install the CLI.tar from "Downloads" folder but npm translates the "Downloads" keyword as a namespace and hence the error is thrown.

To avoid this type of error, please use direct reference of the "Downloads" folder as "./"

npm install --location=global ./Downloads/CLI.tar