simonwep / candy

🍭 Cross-platform YouTube-downloader with playlist and channel support as well as build-in audio / video converter.

Home Page:https://github.com/Simonwep/candy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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?

commented

Try to add @vue/cli to your global scope:

sudo npm i -g @vue/cli

or

sudo yarn global add @vue/cli
commented

I'm not longer using the vue-cli. Check out the current revision.