vue cli 创建项目时设置项目位置

 vue create hello-cloud 创建项目时设置项目位置,比如我要设置到D盘的根目录,具体操作步骤如下:

1.win+r(即cmd进入命令行)

2.D:

3.vue create hello-cloud


C:\Users\18710>D:


D:\>vue create hello-cloud


Vue CLI v4.5.15
? Please pick a preset: Default (Vue 3) ([Vue 3] babel, eslint)


Vue CLI v4.5.15
✨  Creating project in D:\hello-cloud.
🗃  Initializing git repository...
⚙️  Installing CLI plugins. This might take a while...


> yorkie@2.0.0 install D:\hello-cloud\node_modules\yorkie
> node bin/install.js

setting up Git hooks
done


> core-js@3.19.3 postinstall D:\hello-cloud\node_modules\core-js
> node -e "try{require('./postinstall')}catch(e){}"


> ejs@2.7.4 postinstall D:\hello-cloud\node_modules\ejs
> node ./postinstall.js

added 1264 packages from 656 contributors in 73.857s

84 packages are looking for funding
  run `npm fund` for details

🚀  Invoking generators...
📦  Installing additional dependencies...

added 70 packages from 77 contributors in 8.319s

91 packages are looking for funding
  run `npm fund` for details

⚓  Running completion hooks...

📄  Generating README.md...

🎉  Successfully created project hello-cloud.
👉  Get started with the following commands:

 $ cd hello-cloud
 $ npm run serve


D:\>cd hello-cloud

D:\hello-cloud>npm run serve

> hello-cloud@0.1.0 serve D:\hello-cloud
> vue-cli-service serve

 INFO  Starting development server...
98% after emitting CopyPlugin

 DONE  Compiled successfully in 1537ms                                                                      上午10:53:46


  App running at:
  - Local:   http://localhost:8080/
  - Network: http://10.0.92.103:8080/

  Note that the development build is not optimized.
  To create a production build, run npm run build.

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

buyaopingbixiazai

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值