直接输入npm uninstall -g @vue/cli,卸载vue2.0 输入npm install -g @vue/cli@next,安装vue3.0 -g是全局安装和卸载 查看vue版本和脚手架版本,输入npm list vue 和vue -V