| 1. |
Define NPM (Node Package Manager). |
|
Answer» NPM stands for NODE Package Manager. It is commonly used as a default package manager for Node.js (JavaScript runtime environment). It is included in every installation of Node.js. This command-line tool installs, updates, and uninstalls Node.js packages and modules required for Node applications or projects. A package CONTAINS all files for a module, and modules are basically JavaScript libraries that can be added to a Node project as needed. It contains a number of libraries that are extremely USEFUL to Node.js developers, speeding up the process of developing applications. Installing NPM: In order to install NPM, you need to install Node.js as NPM automatically gets with Node.js. Check NPM Version: The FOLLOWING syntax can be used to check the version of NPM that is installed on the system: Syntax: npm -v Update NPM Version: NPM updates refer to updating the Node package manager to its latest version. One may always update the installed version if it is not the latest using the syntax given below: Syntax: npm update [-g] [<PKG>...] The -g flag is used to update npm globally since it is a global package and pkg refers to the package.
|
|