Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to create a vuejs project in idea

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report