Overview of Node.js
A group of related code for a specific action could be encapsulated into Module. Which could be later included into another job. We can compare it as a function of the C programming.
A complete project can be called as a Package. When we install a package it will install all the required modules within the package. NPM is package manager for Node.Js® which contains a library of the package that are already developed and it could be easily reused within your project.
The package can be installed in as a local or global package. If you are planning to use package globally then use ‘-g’ in the install command.
- Node.js® – Download latest version from here – https://nodejs.org/
- Run command line – go to location ofthenodejs folder – c:/program files/nodejs
- Command 1 – ‘cd C:/program files/nodejs’
- Command 2 – ‘install -g npm’ (To install npm as global use ‘-g’ else remote to install for local use)