通过Vue cli (version4.x) 构建 HelloWorld

 1.在工程目录 执行  vue create 【工程名称】

ufo@UPC:~/workspace/vue_basic$ vue create vue-demo


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


Vue CLI v4.5.15
✨  Creating project in /home/ufo/workspace/vue_basic/vue-demo.
🗃  Initializing git repository...
⚙️  Installing CLI plugins. This might take a while...


> yorkie@2.0.0 install /home/ufo/workspace/vue_basic/vue-demo/node_modules/yorkie
> node bin/install.js

setting up Git hooks
done


> core-js@3.20.0 postinstall /home/ufo/workspace/vue_basic/vue-demo/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"


> ejs@2.7.4 postinstall /home/ufo/workspace/vue_basic/vue-demo/node_modules/ejs
> node ./postinstall.js

added 1265 packages from 656 contributors in 62.782s

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

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

added 53 packages from 36 contributors in 7.777s

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

⚓  Running completion hooks...

📄  Generating README.md...

🎉  Successfully created project vue-demo.
👉  Get started with the following commands:

 $ cd vue-demo
 $ npm run serve

 WARN  Skipped git commit due to missing username and email in git config, or failed to sign commit.
You will need to perform the initial commit yourself.

ufo@UPC:~/workspace/vue_basic$ 

2.cd ...进工程目录

npm run serve 启动项目  

 

输入: localhost:8080 显示结果

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值