The installation and configuration of node, npm, cnpm, vue cli are all concentrated here

If you originally downloaded node, you can uninstall it first, and then click on this URL to download (very soon)

https://cdn.npm.taobao.org/dist/node/v14.14.0/node-v14.14.0-x64.msi

The node downloaded from this website can automatically configure environment variables, saving you a lot of trouble.
Insert picture description here

Next, download cnpm, why not increase the speed?

In cmd, remember to open it as an administrator, enter

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

Check the version

Insert picture description here
Install vue with cnpm

cnpm install -g @vue/cli

When installing vue cli, configure the environment variables
Insert picture description here
Insert picture description here

Use vue --version 或者 vue -V(V is uppercase) to check the version

Insert picture description here

Then, what are you doing? You can hit vue ui on the command line and start staying up late, respected workers, hehe.

(I am a noob, there may be errors in the article, criticism and corrections from the big guys are welcome)
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_45728842/article/details/109277560