Vue-cli version problem [uninstall and install]

 vue create antd-demo

  vue create is a Vue CLI 3 only command and you are using Vue CLI 2.9.6.
  You may want to run the following to upgrade to Vue CLI 3:

  npm uninstall -g vue-cli
  npm install -g @vue/cli

Uninstall:

npm uninstall vue-cli -g // Uninstall below 3.0:
npm uninstall @vue/cli -g // Uninstall above 3.0:

View version:

npm view vue-cli versions --json // view the installable version of vue-cli below 3.0
npm view @vue/cli versions --json // view the installable version of vue-cli above 3.0

Install:

npm install [email protected]
npm install -g @vue/[email protected]

View version:

vue -V

Reduced version handling:

npm remove -g @vue/cli // uninstall
npm install -g @vue/[email protected] // reinstall

Guess you like

Origin blog.csdn.net/qq_38687592/article/details/129008962