[vue3]npm创建环境

发布时间 2023-04-01 11:54:26作者: LeoShi2020

1. npm安装 vue cli

[root@Python 20230401VUE3]# npm install -g @vue/cli

2. 查看 vue版本

[root@Python 20230401VUE3]# vue --version
@vue/cli 5.0.8

3. 创建项目

[root@Python 20230401VUE3]# vue create hello-world

4. 执行项目

 $ cd hello-world
 $ npm run serve

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