一般出现这个问题,是因为没有配置全局变量,总端是禁止使用不认识的指令的。
1、npm config list 查看一下npm 的配置信息,下图
2、然后找到这个红色线里面的路径,看看有没有vue.md的文件:
然后把这个路径添加的系统环境变量的path里面,如下图:
3、最后检查一波:
vue --version --3.8.2 vue-cli --verion --