Vue CLI

作者: 忘记_3a6a | 来源:发表于2020-03-22 08:50 被阅读0次

Vue CLI

  • 安装

    npm install -g @vue/cli
    # OR
    yarn global add @vue/cli
    
    vue --version
    

创建方法一

  • 命令
$: vue init webpack test1

? Project name test1
? Project description A Vue.js project
? Author 
? Vue build standalone
? Install vue-router? Yes
? Use ESLint to lint your code? No
? Set up unit tests Yes
? Pick a test runner jest
? Setup e2e tests with Nightwatch? Yes
? Should we run `npm install` for you after the project has been created? (recommended) npm

  • vue create hello-vue

  • 运行命令

    npm run serve
    

相关文章

网友评论

      本文标题:Vue CLI

      本文链接:https://www.haomeiwen.com/subject/khhmyhtx.html