MacOS: sh: vue-cli-service: command not found
hungntv opened this issue · comments
$ npm run electron:build
> candy@1.0.0-beta electron:build /Volumes/xxx/Projects/candy
> vue-cli-service electron:build
sh: vue-cli-service: command not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! candy@1.0.0-beta electron:build: `vue-cli-service electron:build`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the candy@1.0.0-beta electron:build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/xxx/.npm/_logs/2019-05-03T08_55_15_971Z-debug.log
How can I fix it?
I'm not longer using the vue-cli. Check out the current revision.