前端系列:Vue入门&环境搭建、【vue】创建项目&项目搭建问题&项目文件介绍&.vue文件介绍
- 一. Vue入门&环境搭建
-
-
- 一、入门
-
-
- 1. 来自 [vue官网(vue2)](https://cn.vuejs.org/v2/guide/) 的介绍:
- 2. vue采用的是MVVM设计模式
- 3. 特点
-
- 二、环境搭建
-
- 1. 先安装node.js
- 2. npm(node package manager)
- 3. 使用cnpm镜像
- 4. 移动本地仓库
- 5. 安装vue
- 6. 安装vue-cli脚手架
- 7. 安装vue-router
- 8. 其他常用命令
- 三、遇到的问题:
-
- 1. 运行npm install 时,卡在 sill idealTree buildDeps 没有反应
- 2. [… … … … … …] - idealTree:npm: sill idealTree buildDeps
- 3. 使用了内网,代理报错
- 4. npm版本问题,有一些警告
-
- 二. 【vue】创建项目&项目搭建问题&项目文件介绍&.vue文件介绍
-
-
- 创建vue项目&项目搭建问题&项目文件介绍&.vue文件介绍
- 一、创建vue项目
-
- 步骤:
- 二、遇到的问题
-
- 1. These relative modules were not found
- 2. export ‘default’ (imported as ‘_vant’) was not found in ‘vue’
- 3. Cannot find module ‘bug-versions/package.json’
- 4. npm ERR! missing script:dev
- 5. vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.
- 6. Unknown custom element: - did you register the component correctl
- 7. Error: Unknown option ‘–inline’
- 8. npm ERR! missing script: serve
- 三、项目文件介绍
- 四、代码文件介绍
-
- 1. build文件夹里的webpack.base.conf.js配置文件
- 2. main.js
- 3. 根目录下的index.html
- 4. router里面的index.js
- 5. config文件夹index.js
- 6. 总结:页面元素来源
- 五、.vue文件简单介绍
-
- 1. template 部分
- 2. script 部分
- 3. style 部分
-

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/94453.html