Vue02_第一个vue-cli项目

Vue02_第一个vue-cli项目


  • nodejs 的下载和安装

官网下载(选择windows64位的版本):http://nodejs.cn/download/

安装:无脑下一步

测试是否安装成功:
在这里插入图片描述
安装淘宝镜像:

npm install cnpm -g

使用淘宝镜像安装 vue-cli:

cnpm install vue-cli -g

全局安装的路径:

C:\Users\[电脑用户名]\AppData\Roaming\npm\node_modules

  • 创建 vue-cli 项目:
vue init webpack myvue
? Project name myvue
? Project description A Vue.js project
? Author BLU
? Vue build
> 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 - re
nder functions are required elsewhere
? Install vue-router? (Y/n) n
? Use ESLint to lint your code? (Y/n) n
? Set up unit tests (Y/n) n
? Setup e2e tests with Nightwatch? (Y/n) n
? Should we run `npm install` for you after the project has been created? (recommended)
  Yes, use NPM
  Yes, use Yarn
> No, I will handle that myself
Vue build 选择 Runtime + Compiler: recommended for most users
Should we run `npm install` for you after the project has been created? 选择 No
进入项目路径:
cd myvue

初始化项目:
npm install

启动项目:
npm run dev

在这里插入图片描述

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值