npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! yshop-web@2.4.0 dev: `vue-cli-service serve` npm
这里有个巨坑!!!
在晚上各种找资料,各种清理缓存都试了
项目路径不能有中文字符!!:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! yshop-web@2.4.0 dev: `vue-cli-service serve`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the yshop-web@2.4.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2021-01-09T02_52_43_811Z-debug.log
解决方法:
改掉中文的路径,把项目放在一个没有中文字符的路径。