解决方案也挺简单: 先卸载vue-template-compiler npm uninstall vue-template-compiler安装终端报错的版本 npm install vue-template-compiler @报错中提示的版本 但是我操作时只是先卸载,重新安装时没填写版本照样有用,有用就行。。