Vue2.0 搭建Vue脚手架(vue-cli)
Vue 搭建 CLI 脚手架 Vue2.0
2023-09-11 14:16:36 时间
vue搭建
https://www.cnblogs.com/zhaomeizi/p/8483597.html
Vue2.0 搭建Vue脚手架(vue-cli)
https://segmentfault.com/a/1190000011275993
element-vue
https://element.eleme.cn/#/zh-CN/component/container
idea导入官网vue
https://www.csdn.net/gather_24/OtTacgysNTEwLWJsb2cO0O0O.html
npm安装node.js教程(常用)
https://www.jianshu.com/p/d9ec722db099
element-ui初级使用
https://blog.csdn.net/xuelang532777032/article/details/100070020
安装python
https://blog.csdn.net/qq_41638795/article/details/93075651
Error: Can't find Python executable "python", you can set the PYTHON env variable.解决办法(CMD采用管理员运行)
https://blog.csdn.net/qq_39165556/article/details/94590365
问题: npm 解决包由于版本不一致导致的项目启动错误。
npm cache clean --force
npm install webpack-dev-server --save-dev
//查看本地包版本信
npm ls webpack-cli
//查看版本
npm -v
//更新
npm update webpack-cli
npm操作指南
注:若npm install 报错 permission denied,使用sudo npm install -g npm
查看版本
npm -v
升级版本
npm install -g npm
删除
npm cache clean --force
npm cache clean -f
安装模块
【npm install xxx】利用 npm 安装xxx模块到当前命令行所在目录;
【npm install -g xxx】利用npm安装全局模块xxx;
本地安装, 本地安装时将模块写入package.json中:
【npm install xxx】安装但不写入package.json;
【npm install xxx --save】 安装并写入package.json的"dependencies"中;
【npm install xxx --save-dev】安装并写入package.json的"devDependencies"中。
删除模块
【npm uninstall xxx】删除xxx模块;
【npm uninstall -g xxx】删除全局模块xxx;
删除缓存
npm cache clean --force
安装淘宝镜像
npm install -g cnpm --registry=https://registry.npm.taobao.org
或 npm config set registry https://registry.npm.taobao.org
npm config get registry
查看安装依赖版本
npm view element-ui versions --json
npm view vue versions --json
npm view vue-cli-plugin-element versions --json
vue安装
cnpm install vue(稳定版)
vue-cli安装
cnpm install --global vue-cli
cnpm install -g vue-cli
webpack安装
webpack -v
npm install --global webpack
webpack-cli安装
npm install --global webpack-cli
element-ui安装
vue-cli-plugin-element
package.json可以版本号
创建一个基于 webpack 模板的新项目
vue init webpack VueProject
vue init webpack-simple VueProject
全局安装项目依赖
cnpm install
启动命令
npm run dev
npm run build
启动命令(cli3)
cnpm run serve
git常用命令
git branch
git branch 分支名 --git创建分支
git checkout 分支名 --切换分支
git branch -d 分支名 --删除分支
git merge 分支名
git revert HEAD --撤销前一次commit
git status
git diff
git clone https://gitee.com/cxxjohnson_admin_admin/VueProject.git
git add . --所有文件
git commit -m "test"
git push origin master
相关文章
- (尚031)Vue_案例_自定义事件(组件间通信第2种方式:vue自定义事件)
- 【Vue+element+admin】登陆页面篇(login.vue)
- 【Vue】Vue组件中事件和方法的混合(mixin)应用(图文+代码示例)
- Vue - cli3 脚手架搭建项目步骤流程(windows)
- 关于Vue中main.js,App.vue,index.html之间关系进行总结
- vue 3.0 项目搭建移动端 (三) computed 和 methods 和 watch
- Vue的报错:Uncaught TypeError: Cannot assign to read only property 'exports' of object '#<Object>'
- Vue相关开源项目库汇总 http://www.opendigg.com/tags/front-vue
- 02-vue基础-Vue常用特性
- vue-router有哪几种导航钩子?(具体怎么用的)
- vue之package.json文件解析
- 【Vue】 vue2路由搭建和搭建vue2脚手架(入门级)
- vue实战入门后台篇一:springboot+mybatis实现网站后台-项目框架搭建
- 使用vue-cli3搭建一个项目!!!
- 在本机搭建vue-cli3项目
- [js高手之路] vue系列教程 - 绑定设置属性的多种方式(5)
- vue组件异步渲染
- Vue-cli 4在vue.config.js中配置别名
- vue基础(五),对todos的操作
- vue computed
- 解决VsCode启动Vue项目报错:‘vue-cli-service‘ 不是内部或外部命令,也不是可运行的程序 或批处理文件。