Vue.js系列之项目搭建
2024-10-19 13:24:56
项目搭建具体步骤如下:
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.如下所示:
最新文章
- loopback文档翻译
- GisUtil工具类:将WKT(wellKnownText)文本转换为ElasticSearch识别的空间对象字符串形式
- IM即时通讯实现原理
- C/C++ 错误处理
- Scrum Meeting 9-20151211
- java中&;与&;&;的区别
- cocos2d-x lua table数据存储
- UVa 253 Cube paiting
- QQWry.dat 数据写入
- wuzhicms 模块开发
- python 零散记录(四) 强调字典中的键值唯一性 字典的一些常用方法
- Nginx配置同一个域名http与https两种方式都可访问
- SpringBoot Test集成测试
- REP开发技巧
- 详解 java socket
- 访问者模式-Visitor Pattern
- python 使用for循环简单爬取图片(1)
- jQuery API的特点
- Solaris 11, gcc 的安装
- 盘点linux系统中的12条性能调优命令。
热门文章
- SpringBoot技术点细解
- JSON转化
- 在CentOS 7上使用Tripwire监控和检测修改的文件
- nginx配置文服
- Codeforces Round #212 (Div. 2) C. Insertion Sort
- Python的string模块
- <;顺序访问>;<;随机访问>;<;HDFS>;
- Metasploit的射频收发器功能 | Metasploit’s RF Transceiver Capabilities
- HDU 5776 sum(抽屉原理)
- html 调用ocx控件