As a prerequisite, ensure the nrfjprog executable is installed and available in the system path. nrfjprog is part of nRF Command Line Tools.
Note
The nRF Command Line Tools have been archived and replaced by nRF Util. No further updates will be made to the nRF Command Line Tools. Last supported operating systems are Windows 10, Linux Ubuntu 22.04, and macOS 13. The nRF Command Line Tools will remain available for download, but do not install the SEGGER J-Link version they provide if you have a newer version installed.