Download the latest (LTS or current) Node.js and install it globally on your system. This includes the Node Packaged Modules (npm) which is the standard way for installing Node packages.
After the installation make sure that you are able to run the npm --version
command from your terminal.