
Command node test.js will execute result as shown below. console.log("Hello Dev! We are testing node.js") You can also test node command by creating simple. These command should give you the version details for node and npm respectively. Open command prompt (if already opened, please close and re-open it) and check version of node.js with node -v command and npm with npm -v command. Now you should verify if installation completed sucessfully or not. Please note that NPM installs automatically along with node.js installation. Follow the instructions and complete the setup. Once download is completed, click on the installer.Ī wizard opens up. Select option as per your system specification and save the installer. It is recommended to download LTS version. You can download node.js installer from below link.Ĭlick on above link. Not only it provides you scalable project structure, instead it handles all common tedious tasks for you out of the box. Angular CLI makes the best use of existing tools by bundling them together. What is Angular CLI ?Īngular cli is a command line interface used to scaffold and build angular apps using node.js style (commonJs) modules. It installs all the necessary pre-defined or user defined pakages/modules required to run a project. NPM is Node Package Manager which manage all the dependencies required for a project to run. With the help of Node.JS, you can do much more with JavaScript than just making websites interactive. Node.JS run-time environment includes everything you need to execute a program written in JavaScript language. It runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.) and used Javascript on server side. Node.js is an open source JavaScript run-time environment.

To develop an angular project we need all above mentioned tools i.e. Understanding Node.JS, NPM and Angular CLIīefore start let's see what we understand from above terms.

In this chapter we will learn to setup above tools. To start creating an angular project, we must have node.js, npm, Angular CLI and any IDE like Web Storm, Visual Studio Code installed on system. setting up node.js, npm, IDE (Visual Studio Code), checking versions, run a test javascript via node command etc. At the end of this chapter you should be able to install all prerequisite tools for an angular project i.e. In this chapter we will learn setting up environment for an angular project.
