vue-cli版本问题【卸载与安装】

 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

卸载:

npm uninstall vue-cli -g //3.0以下卸载:
npm uninstall @vue/cli -g // 3.0以上卸载:

查看版本:

npm view vue-cli versions --json // 3.0以下vue-cli可安装版本查看
npm view @vue/cli versions --json // 3.0以上vue-cli可安装版本查看

安装:

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

查看版本:

vue -V

降低版本处理:

npm remove -g  @vue/cli // 卸载
npm install -g @vue/[email protected] // 重新安装

猜你喜欢

转载自blog.csdn.net/qq_38687592/article/details/129008962