First, create a folder where you put your projects. For example, I created a folder called Myuapp on drive D, click to enter that folder, and then open CMD.

  1. NPM install -g@vue /cli

2. Vue create -p dcloudio/uni-preset-vue XXX (XXX is the project name)

(The default template is recommended, or the Hello Uni-app template is also available).

Then, once it’s built, go to HBuilder-x and go File – Import – Import from your local directory

Select the project file and import it.

. Then you can hit Run-Run to the browser, and once it’s successfully launched, you can start development.

The following figure shows the project after successful startup.