Install Node.js

Node.js must be at least version 10. 2. Run the Node -v command to check the version. If the version is not higher than 10, uninstall the current version. Then install the new version.

Install @vue/ CLI

Yarn Global add @vue/cli vue –version View the version number

Iii. Construction Project

Once installed, find a safe directory and run itVue create Specifies the folder to be created

A little slow, then it will appear below for you to choose, select the following ☞ Manual selection function. (If the keyboard can’t move down to select it, change the terminal.)

Press Enter to see a list of features you want to select, scroll up and down, press the space to select the following: all but the last.

Continue to:

Do you use class-style component syntax? is

Do you use Babel with TS? is

Do you want to use history mode? No (because it requires you to do some configuration in the background)

Which CSS preprocessor to use? Select the default first Dart-sass

Which Linter to use? Default the first one

When will you be notified of a code error? The second

With what test? Jest

Where is the configuration? Default the first one

Do you want to save all current options for use by all future projects? If you think the current configuration is complete, select Y. If you want to change it later, select N.

When you press Enter, it will automatically download the dependency, which will be ready in a moment.

There is success, there is no need to take care of the error, error is failure, find out the reason again! I had an error once (because I was using YARN)Solutions:

1. Look at drive C, c :User/. Vuerc find the. Vuerc file, open the packageManager file and change it to YARN.

2. Modify the YARN source

Yarn config get registry > registry: 'https://registry.yarnpkg.com' / / replace taobao mirror yarn config set registry at https://registry.npm.taobao.orgCopy the code

Reconfigure vUE, success!

Follow its prompts to go to the folder, note that it is best to open serve with an editor

When you open Serve and see the following window, your project is successfully created.