-
Use cmd to check node and npm versions.
node -v npm -v
-
Install cnpm.
npm install -g cnpm --registry=https://registry.npmmirror.com
-
Check if cnpm is installed successfully.
cnpm -v
-
Install the package management tool yarn.
npm install -g yarn
-
Check if yarn is installed successfully.
yarn -v
-
Install vue scaffolding globally.
cnpm install -g @vue/cli
-
Check if vue cli is installed successfully.
vue -V
-
Create a project using vue cli.
vue create vue_manage(project name)
The configuration item selected here is vue2!
The up and down arrow keys indicate selection, and Enter indicates the next configuration item.
-
Run the project.
Note that although vue3 has come out, many of them are currently vue2, and vue2 and vue3 are very different. If the versions are different, errors may be reported, so you need to pay attention to Austria!
Cnpm + Yarn + Vue CLI
Guess you like
Origin blog.csdn.net/qq_43779149/article/details/123545448
Recommended
Ranking