Home > Article > Web Front-end > What is npm in react
In react, npm is usually called the node package manager. It is Nodejs's default package management system written in JavaScript. Through npm, you can install, share, distribute code, and manage project dependencies. The npm in
react
refers to NPM (node package manager), usually called node package management It is Nodejs's default package management system written in JavaScript. npm can be used to install, share, distribute code, and manage project dependencies.
The main function is to manage node packages, including: installation, uninstallation, update, view, search, release, etc.
NPM is a database based on couchdb, which records the information of each package in detail (author, version, dependency, authorization information, etc.)
npm is a package management tool in the JavaScript world, and is a Node The default package management tool for the .js platform will be installed along with Nodejs. Similar to maven, gradle in Java syntax, and pip in python.
npm can solve many problems in NodeJS code deployment. Common usage scenarios include the following:
Allow users to download third-party packages written by others from the NPM server Use it locally.
Allows users to download and install command line programs written by others from the NPM server for local use.
Allows users to upload packages or command line programs they write to the NPM server for others to use.
npm coexists with Nodejs. As long as Nodejs is installed, npm will also be installed. After Nodejs is installed. Open the terminal and execute the following command to check whether the installation is successful.
$ node -v v6.10.3 $ npm -v 2.3.
Related free learning recommendations: JavaScript (video)
The above is the detailed content of What is npm in react. For more information, please follow other related articles on the PHP Chinese website!