In this chapter, you will learn how to install npm and node js in mac system and windows system
Steps to how to install npm and node js for mac.
- You will get the node from the official website of Node https://nodejs.org/en/
- On the home page of the node.js, you will find a download section for our operating system.
- There will two options available one is
LTS version which means Long term support and it is highly recommended for most users.
The current version with the latest features. - We recommend you to go for the current version with the latest features.
- Click on the current version, a file will be downloaded.
- Run the file.
- Continue a couple of times.
- Agree to terms and conditions.
- Choose where you want to install.
- Authenticate yourself by giving a password.
- Within a few seconds, the node installer is ready.
- Now test that by running a command in a terminal that is node -v
- You will get the version of node.js that you have installed on your machine.
- If you are not getting the version of the installed node it means the node is not installed properly on your machine or you have miss-typed spelling and you will get value as command not found.
Once you are done with the installation of the node.js, make sure you have a text editor on the machine to write node scripts.
Steps for Installing Visual studio on mac.
- Official website https://code.visualstudio.com/
- It is free, open-source and available for all operating systems.
- The fantastic ecosystem of extensions
You can also go other text editors like sublime, atom, webstorm.
3 thoughts on “How to install npm and node js”
Comments are closed.