npm install
# Install the dependencies to the local node_modules folder。 By default, npm install will install all modules listed as dependencies in package.json。(running in a package directory, no arguments).
npm install
# npm install saves any specified packages into dependencies by default。(在package.json文件的dependencies里会新增一个包声明)
npm install <package-name>
# Package will appear in your devDependencies。(在package.json文件的devDependencies里会新增一个包声明)
npm install <package-name> --save-dev
# 全局安装包,不只是安装在当前项目里
npm install <package-name> --global
npm run
# 运行package.json中scripts属性配置的‘serve’脚本
npm run serve
标签:npm,package,学习,json,dependencies,install,devDependencies
From: https://www.cnblogs.com/a-touch-of-watermelon/p/18276631