‘vue-cli-service’ 不是内部或外部命令,也不是可运行的程序
或批处理文件。
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! kqTrainH5@4.1.0 dev: vue-cli-service serve
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the kqTrainH5@4.1.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
解决办法1
npm install --global vue-cli
解决办法2
我使用的淘宝的源
nrm ls
切换源
nrm use npm
删除 node_moudles
重新 npm install
博客指出运行 'vue-cli-service' 时出现不是内部或外部命令的错误,同时给出两个解决办法。一是全局安装 vue-cli,即执行 'npm install --global vue-cli';二是切换源,删除 node_moudles 后重新执行 'npm install'。
501

被折叠的 条评论
为什么被折叠?



