bower and npm, puzzle package management tool

npm  is the package manager for Javascript. npm is a js package management tool based on the nodejs platform. This tool will be automatically installed when NodeJS is installed, which can solve many problems in NodeJS code deployment, such as:

Allow users to download third-party packages written by others from the NPM server to local use

Allow users to download third-party command line programs from NPM server to local use

Allow users to upload their own packages and command line programs to the NPM server

Both front and back ends can be used, not just the nodejs package manager


Check if npm is installed in the development environment: npm -v

npm upgrade: npm install -g npm

Or cnpm install -g npm Taobao mirror

Use npm to install the js module: npm install moduleName

Use npm to uninstall the s module: npm uninstall moduleName


Configuration file: package.json is a configuration file that matches npm, which   can be generated using the command: npm init  or manually created


Bower : Front-end package management tool. And in 15 years, the official website has ceased maintenance. They recommend using npm. Install npm install -g bower

But bower is more suitable for front-end file management. A package management tool launched by twitter. His main purpose: to solve the dependencies between packages.

spm: Front-end module management tool. 









Guess you like

Origin blog.csdn.net/u010682774/article/details/78892799