Get the App
SLTechnology News&Howtos  ›  Development  › 

How to create a vuejs project in idea

Shulou Source: shulou.com Published: 2022-06-03 17:20:52 10月03日 Update

This article mainly shows you "how to create a vuejs project in idea", the content is easy to understand, clear, hope to help you solve your doubts, let the editor lead you to study and learn "how to create a vuejs project in idea" this article.

Create method: 1, install Node;2, open idea, click "Create New Project"-"Static Web", fill in the project name, click "Finis"; 3, open idea Terminal, execute instructions to install vue scaffolding tool, initialize vue project.

The operating environment of this tutorial: windows7 system, vue2.9.6 version, DELL G3 computer.

1. Vue.js needs the foundation of Node.js

1. Download address: https://nodejs.org/en/download/

(follow the normal installation steps, the next step will be fine.)

2. Open cmd (win+R) and enter the following command to check whether the installation is successful:

Node-v npm-v

2. Start building the project

1. Open the Idea new project

Create New Project > Static Web > fill in project name and select saved workspace > Finis

2. Install vue scaffolding tools

Open the Terminal of idea

At this point, you need to modify the path of Terminal and change it to the cmd path of this machine = > File- > Settings (restart after modification) (otherwise, npm,vue is not an internal command):

When you are finished, run the following command

/ / install Taobao image npm I-g cnpm-- registry= https://registry.npm.taobao.org

After waiting for the download to complete, continue to install vue's scaffolding tool and enter the following command in Terminal

Npm I-g vue-cli

Test whether the installation is successful:

Vue-V

After the scaffolding is installed, initialize the package structure and continue to enter

Vue init webpack demo

Demo is the name of the new project you created earlier. Initialization is set. You can refer to the setting here.

After initialization is complete. Enter the following in Terminal:

Cd demonpm install (or if using yarn: yarn) npm run dev

When you are finished, you will be prompted on which port you can access, which is now 8080.

Open the browser and enter: localhost:8080, the following screen appears, and the simple demo is completed.

The above is all the contents of the article "how to create a vuejs Project in idea". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Projects inputs commands scaffolding content tools articles success paths learning help addresses basics instructions tutorials methods easy to understand more organization steps Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL NVidia MariaDB Shulou Technology Huawei