Vue.js 3 Setup Guide: Step-by-Step Installation & Project Creation
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
3. Create a new project using the Vue CLI:
vue create my-project
Replace 'my-project' with the name of your project.
4. Follow the prompts to configure your project. Choose 'default' for the preset.
5. Once the project is created, navigate to the project directory:
cd my-project
6. Start the development server:
npm run serve
This will start the server at http://localhost:8080. You can now start building your Vue app!
原文地址: https://www.cveoy.top/t/topic/mrxr 著作权归作者所有。请勿转载和采集!