# Vue启动讲解
- 开发环境下启动
`npm run dev`
- 添加/更新依赖包
`npm install`
*尽量少使用自动更新命令:**npm update***
- 开发环境下启动过程分析
- package.json
`"dev": "node build/dev-server.js",`
- dev-server.js
`var config = require('../config')`
`var webpackConfig = require('./webpack.dev.conf')`
- webpack.dev.conf.js
`var baseWebpackConfig = require('./webpack.base.conf')`
- webpack.base.conf.js
~~~
var path = require('path')
var utils = require('./utils')
var config = require('../config/index')
var vueLoaderConfig = require('./vue-loader.conf')
~~~
`app: './src/main.js',`