Install without writing package.json;

npm install
Copy the code

Install and write dependencies

npm install xxx -S
Copy the code

Install and write to devDependencies

npm install xxx -D
Copy the code