首页前端开发JavaScriptvue脚手架项目创建步骤详解

vue脚手架项目创建步骤详解

时间2024-02-01 00:10:02发布访客分类JavaScript浏览671
导读:收集整理的这篇文章主要介绍了vue脚手架项目创建步骤详解,觉得挺不错的,现在分享给大家,也给大家做个参考。 vue脚手架 —> vue.cli快速的创建一个大型的功能齐全的vue项...
收集整理的这篇文章主要介绍了vue脚手架项目创建步骤详解,觉得挺不错的,现在分享给大家,也给大家做个参考。

vue脚手架 —> vue.cli

快速的创建一个大型的功能齐全的vue项目模板(初始化项目)

土味解释:快速的创建一个空的vue项目

安装(全局安装)

  • 全局安装
>
     npm i @vue/cli -g 
  • 创建vue脚手架项目
>
     vue create 项目名

配置选项

vue cli v4.5.11? Please pick a PReset: (Use arrow keys)>
     Default ([Vue 2] babel, eslint)  Default (Vue 3 Preview) ([Vue 3] babel, eslint)  Manually select features 
  • 按上下选择 ,回车确认,这里选择第三项手动

选择功能

Vue CLI v4.5.11? Please pick a preset: Manually select features? Check the features needed for your project: (Press space>
     to select, a>
     to toggle all, i>
     to invert selection)>
    (*) Choose Vue version (*) Babel ( ) TyPEScript ( ) Progressive Web App (PWA) Support ( ) Router ( ) Vuex ( ) CSS Pre-processors (*) Linter / Formatter ( ) UnIT testing ( ) E2E Testing
  • 上下移动光标,空格选择,回车确认,这里选择 1 2 5 6 选项

选择版本

? Check the features needed for your project: Choose Vue version, Babel, Router, Vuex? Choose a version of Vue.js that you want to start the project with (Use arrow keys)>
     2.x 3.x (Preview)
  • 这里选择 2.x

是否使用历史模式

? Use history mode for router? (Requires proper server SETUP for index fallback in production) (Y/n) 
  • 这里输入n 回车

Babel, ESLint等的配置位置

? Where do you prefer placing config for Babel, ESLint, etc.? (Use arrow keys)>
     In dedicated config files In package.json
  • 这里选择选择第一项 专用配置文件存放

是否存为预置

? Save this as a preset for Future projects? (y/N)
  • 这里选择 n

创建成功

Vue CLI v4.5.11Creating project in D:\MyStudy\myvue2.⚙️ Installing CLI plugins. This might take a while...>
     core-js@3.9.1 postinstall D:\MyStudy\myvue2\node_modules\core-js>
 node -e "try{
require('./postinstall')}
catch(e){
}
    ">
     ejs@2.7.4 postinstall D:\MyStudy\myvue2\node_modules\ejs>
     node ./postinstall.jsadded 1208 packages From 928 contributors in 21.836s61 packages are looking for fundingrun `npm fund` for details🚀 Invoking generators...📦 Installing additional dependencies...added 5 packages from 1 contributor in 4.671s61 packages are looking for fundingrun `npm fund` for details    ⚓ Running completion hooks...📄 Generating README.md...🎉 Successfully created project myvue2.  👉 Get started with the following commands:$ cd myvue2$ npm run serve

进入项目 目录

>
     cd myvue2

启动服务

>
     npm run serve
 DONE Compiled successfully in 2492ms                    App running at: - Local:  http://localhost:8080/  - Network: http://192.168.17.154:8080/ Note that the development build is not optimized. To create a production build, run npm run build.

到此这篇关于vue脚手架项目创建步骤详解的文章就介绍到这了,更多相关vue脚手架项目创建内容请搜索以前的文章或继续浏览下面的相关文章希望大家以后多多支持!

您可能感兴趣的文章:
  • vue-cli脚手架引入弹出层layer插件的几种方法
  • vue-cli脚手架打包静态资源请求出错的原因与解决
  • VUE脚手架具体使用方法
  • @L_512_3@

声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942#qq.com核实处理,我们将尽快回复您,谢谢合作!

上一篇: 详解微信小程序(Taro)手动埋点...下一篇:javascript实现简单页面倒计时猜你在找的JavaScript相关文章 html font标签如何设置字体大小?html font标签属性用法介绍2022-05-16vue3+TypeScript+vue-router的使用方法2022-04-16vue3获取当前路由地址2022-04-16如何利用React实现图片识别App2022-04-16JavaScript展开运算符和剩余运算符的区别详解2022-04-16微信小程序中使用vant框架的具体步骤2022-04-16Vue elementUI表单嵌套表格并对每行进行校验详解2022-04-16如何利用Typescript封装本地存储2022-04-16微信小程序中wxs文件的一些妙用分享2022-04-16JavaScript的Set数据结构详解2022-04-16 其他相关热搜词更多phpjavapython程序员loadpost-format-gallery

若转载请注明出处: vue脚手架项目创建步骤详解
本文地址: https://pptw.com/jishu/594662.html
javascript实现倒计时提示框 javascript实现简单页面倒计时

游客 回复需填写必要信息