Node.js NPM introduced


chapter


NPM is the abbreviation Node Package Manager, which means Node Package Manager.

NPM is Node.js default package manager, written entirely in JavaScript. It was developed by Isaac Z. Schlueter, was released in 2010.

Since then, NPM is responsible for managing all Node.js packages and modules. www.npmjs.com have massive Node.js package, totally free, open-source developers around the world can share in Node.js package on top.

NPM two main functions are:

  • Provides an online repository for Node.js package / module, you can at the official site easily search for these packages / modules.
  • It provides a command line program (CLI), to help developers manage Node.js package.

Note, Node.js project, any packages or modules are required by NPM installation. In subsequent sections of this tutorial will be discussed in detail.

NPM installation

From the 0.6.3 version of the beginning, NPM it as the default package Node.js, including in Node.js in. Node.js installed, the default installation NPM. Node.js can from the official website: https://nodejs.org download and install Node.js.

Check that the NPM has been installed, you can use the following command.

npm -v

Guess you like

Origin www.cnblogs.com/jinbuqi/p/11570630.html