InterviewSolution
Saved Bookmarks
| 1. |
What is npm? |
|
Answer» Npm or Node Package Manager is the default package manager for Node.js.It works as:
Few of the IMPORTANT npm commands are:
“ npm install <name of the package> “. This will install the module under the path, “./node_modules/”. Once installed the module could be used just like they were built-ins. Dependency management could also be done with npm. Our node project will have a package.json which will have all the dependencies needed for our project. If we perform “npm install” from project root all the dependencies listed in the package.json file will be installed.
“npm <command> -H” |
|