1. npm install single module: Installed in the node_modules directory, but will not be saved in package.json. After running the npm install command, the module will not be installed automatically.
npm install
2. Install it in the node_modules directory, save it under the dependencies field in package.json, and install the modules that the production environment depends on.
npm install --save
3. Install it in the node_modules directory, save it under the devDependencies field in package.json, and install the modules that the development environment depends on.
npm install --save-dev
4. Set npm as Taobao mirror
npm config set registry https://registry.npm.taobao.org --global
5. View the configuration results of the mirror
npm config get registry