After node is downloaded from the official website, click Next to install it without a brain
npm : node package manager (control command for installing packages under node), which can be used directly without installation
In the project directory, use the shortcut, hold down shift, click the right mouse button, open the command window, and then enter the npm command to take effect in the directory
Common npm commands are as follows:
1、npm init
Function: Generate project and create package.json
2. npm install package name optional parameter (-g/--save/--save-dev)
Function: install module
-g stands for global installation, which can be used on any hard disk of the computer, no local installation, only in the current directory
--save and --save-dev automatically modify the package.json file, and automatically add the package and version number to the dependencies section and devdependencies respectively
3. npm update package name
Function: update module
4. npm uninstall package name
Function: uninstall module