项目搭建具体步骤如下:
1.安装node
(中)https://nodejs.org/zh-cn/
(英)https://nodejs.org/en/
2.安装cnpm镜像
(node自带安装了npm,故不再安装)
$ npm install -g cnpm --registry=https://registry.npm.taobao.org
安装模块时安装方法
$ cnpm install [name]
3.快速学习Vue2.0教程
(中)http://cn.vuejs.org/
(英)https://vuejs.org/
4.安装Vue2.0
$ cnpm install vue
5.安装vue-cli 脚手架工具

$ cnpm install --global vue-cli
6.在某个目录下,创建一个基于 webpack 模板的新项目
$ vue init webpack my-project
//my-project是你的项目名
7.安装依赖
$ cd my-project  //到项目目录下
$ cnpm install //安装依赖
8.运行新创建的vue项目
$ npm run dev

9.如下所示:

最新文章

  1. loopback文档翻译
  2. GisUtil工具类:将WKT(wellKnownText)文本转换为ElasticSearch识别的空间对象字符串形式
  3. IM即时通讯实现原理
  4. C/C++ 错误处理
  5. Scrum Meeting 9-20151211
  6. java中&与&&的区别
  7. cocos2d-x lua table数据存储
  8. UVa 253 Cube paiting
  9. QQWry.dat 数据写入
  10. wuzhicms 模块开发
  11. python 零散记录(四) 强调字典中的键值唯一性 字典的一些常用方法
  12. Nginx配置同一个域名http与https两种方式都可访问
  13. SpringBoot Test集成测试
  14. REP开发技巧
  15. 详解 java socket
  16. 访问者模式-Visitor Pattern
  17. python 使用for循环简单爬取图片(1)
  18. jQuery API的特点
  19. Solaris 11, gcc 的安装
  20. 盘点linux系统中的12条性能调优命令。

热门文章

  1. SpringBoot技术点细解
  2. JSON转化
  3. 在CentOS 7上使用Tripwire监控和检测修改的文件
  4. nginx配置文服
  5. Codeforces Round #212 (Div. 2) C. Insertion Sort
  6. Python的string模块
  7. <顺序访问><随机访问><HDFS>
  8. Metasploit的射频收发器功能 | Metasploit’s RF Transceiver Capabilities
  9. HDU 5776 sum(抽屉原理)
  10. html 调用ocx控件