使用vue脚手架快速搭建项目,在cmd中执行:vue init webpack vue-demo,报错:
'vue' 不是内部或外部命令,也不是可运行的程序 或批处理文件。
解决方法,执行如下的命令
bash
npm config list

**注意:**找到prefix等号后面的目录下面搜索vue.cmd。

若有有就把bin文件夹上的vue路径添加到环境变量中即可。

在这里给大家推荐一个摸索文件的工具Everything效率挺高的。
然后在cmd中执行vue相关命令就能正常执行。