Click and run the file after downloading and you will see your computer installing NodeJS and NPM.
After the installation, you can now verify if Node and NPM are successfully installed by checking their version through your terminal:
As you can see, the command for checking the version is “node -v” and “npm -v”. Their versions should be seen immediately. Now, you have successfully installed NodeJS and NPM on your computer.
But as we’ve said, Angular is going through changes often and it’s important to keep up with the updates and ensure you are installing NodeJS and NPM’s latest versions. First, you have to take note of your current version to compare them to your updated version. In your terminal, it should look like this:
As you can see, we checked the version first then typed “sudo-i” to login to “root”. Next is “npm install npm -g” to install the updates for Node. And last is “npm cache clean -f” then “n stable” for NPM. After each update, we compare the versions to the previous ones and there you have it! Your NodeJS and NPM are now updated.
Checking for updates and fixes for Node and NPM are highly recommended because of it’s rapidly changing behavior.
Again, installing NodeJS and NPM are important prerequisites prior to creating an Angular app so always check that you have the latest version!
On the next tutorial article, we will talk about Angular-CLI Installation.