npm 命令

1. npm -v 查看npm 版本

2. npm list -g --depth 0  显示已安装的包

# install dependencies 安装依赖关系
npm install

# serve with hot reload at localhost:8080 服务重载在localhost:8080
npm run dev

# build for production with minification 建立生产
npm run build

# build for production and view the bundle analyzer report  建立生产和查看包分析报告
npm run build --report

# run unit tests 运行单元测试
npm run unit

# run e2e tests 运行e2e测试
npm run e2e

# run all tests
npm test
posted @ 2018-01-25 17:44  半透明。  阅读(191)  评论(0)    收藏  举报