node.js vue开发环境搭建

开发工具安装

1、安装node.js

双击安装程序 node-v8.9.3-x64.msi,进行安装即可

2、设置taobao镜像

npm config set registry https://registry.npm.taobao.org

3、安装webpack

npm install webpack -g

4、安装vue-cli

npm install -g vue-cli

项目搭建

1、初始化项目

vue init webpack vue_test

2、安装依赖包

npm install

3、运行项目

npm run dev

vs code vue配置

"editor.tabCompletion": true,

"emmet.syntaxProfiles": {

"vue-html": "html",

"vue": "html"

},

"vetur.format.defaultFormatter.html": "js-beautify-html"

posted @ 2017-12-12 14:18  larkin-cn  阅读(187)  评论(0编辑  收藏  举报