MAC初始化VUE项目

create a new Vue project on a Mac, you can follow these steps:

1.Open a terminal window: Press the Command + Space bar to open Spotlight Search, type "terminal", and press Enter to open the Terminal application.

2.Install the Vue CLI: In the terminal window, run the following command to install the Vue CLI globally:

npm install -g @vue/cli 

3.Create a new Vue project: In the terminal window, navigate to the directory where you want to create the new Vue project. For example, if you want to create a project in a "my-project" directory on your desktop, you can run the following command:

cd ~/Desktop mkdir my-project cd my-project 

Once you're in the directory where you want to create the project, run the following command to create a new Vue project using the Vue CLI:

vue create . 

This will prompt you to select a preset for the project. You can choose the default preset, which includes a basic set of features, or choose a manual preset to customize the project settings.

4.Start the development server: Once the project is created, you can start the development server by running the following command:

npm run serve 

This will start a development server that you can access by opening a web browser and navigating to http://localhost:8080.

That's it! You now have a new Vue project up and running on your Mac. You can start building your app by editing the files in the "src" directory.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值