vue3 setup
To set up Vue.js 3:
-
Install Node.js and npm on your machine if they are not already installed.
-
Open your terminal and run the following command to install the Vue CLI:
npm install -g @vue/cli -
Create a new project using the Vue CLI:
vue create my-projectReplace "my-project" with the name of your project.
-
Follow the prompts to configure your project. Choose "default" for the preset.
-
Once the project is created, navigate to the project directory:
cd my-project -
Start the development server:
npm run serveThis will start the server at http://localhost:8080. You can now start building your Vue app!
原文地址: https://www.cveoy.top/t/topic/4KS 著作权归作者所有。请勿转载和采集!