zoukankan      html  css  js  c++  java
  • VUE-CLI2的初始化项目过程

    1.初始化项目( vue init webpack vuecli2test)

     解决办法:C:Program Files odejs ode_globall目录,把vue.ps1删了

    2.

     3.接下来创建项目(vue init webpack 项目名称)(创建文件夹),文件夹名称中不能有大写

    (1)Project name:项目名称,(不能有大写),回车的话默认为文件夹名称

    (2)Project description (A Vue.js project) :项目描述

    (3) Author:作者 

    (4)Runtime + Compiler: recommended for most users
    Runtime-only: about 6KB lighter min+gzip, but templates (or any Vue-specific HTML) are ONLY allowed in .vue files - render functions are required elsewhere

    (这两个可以通过上下箭头来选择)

    如果选择了上面的Runtime + Compiler:

       Install vue-router(Y/n):是否安装路由

      Use ESLint to lint your cade(Y/n):是否对JS代码做一些限制(规范)

       Set up unit tests (Y/n) :单元测试

      Setup e2e tests with Nightwatch? (Y/n):端到端测试

      ? Should we run `npm install` for you after the project has been created? (recommended) (Use arrow keys)

        > Yes, use NPM
        Yes, use Yarn
        No, I will handle that myself:管理项目时,是使用npm还是yarn

      

  • 相关阅读:
    too many open files linux服务器 golang java
    fasthttp 文档手册
    syncer.go
    grpc.go
    stm.go
    session.go
    mutex.go
    [HTML5]label标签使用以及建议
    禁止使用finalize方法
    [支付宝]手机网站支付快速接入
  • 原文地址:https://www.cnblogs.com/yaya-003/p/11867998.html
Copyright © 2011-2022 走看看