总结四种Vue.js 安装方式

总结四种Vue.js 安装方式

1,软件版本

我们可以在 Vue.js 的官网上直接下载 vue.min.js 并用 <script> 标签引入

2,使用 CDN 方法

CDN(国内) : https://cdn.staticfile.org/vue/2.2.2/vue.min.js 

3,NPM 方法

在用 Vue.js 构建大型应用时推荐使用 NPM 安装:

$ cnpm install vue

4,命令行工具

# 全局安装 vue-cli

$ cnpm install --global vue-cli

# 创建一个基于 webpack 模板的新项目

$ vue init webpack my-project

# 这里需要进行一些配置,默认回车即可

This will install Vue 2.x version of the template.

文章来自 http://www.96net.com.cn

$ cnpm install vue

猜你喜欢

转载自www.cnblogs.com/96net/p/12919136.html
今日推荐