安装后可使用npm工具javascript
安装webpack包发布工具:html
安装vue协助构建工程的框架: vue-clivue
vue init webpack-simple vue2new //下载新的示例模板webpack-simple: cd vue2new //进入模板文件夹 cnpm i //根据 package.json下载模块到当前目录/node_modules下 npm run dev //运行服务器
此时该项目已经跑通,能够在浏览器中看到页面,下一步设置开发环境。java
设置配置文件(打开-首选项-用户配置)node
{ "emmet.syntaxProfiles": { "vue-html": "html", "vue": "html" }, "vetur.validation.template": false, "javascript.format.insertSpaceBeforeFunctionParenthesis": true, "editor.formatOnSave": true, "editor.tabSize": 2, }