build:mac 和build:win 都报错。
GuoJiKaiHehe opened this issue · 1 comments
GuoJiKaiHehe commented
CANNOT RUN WITH NODE 10.14.1
Electron Packager requires Node 4.0 or above.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vue-objccn@1.0.0 build:mac: `NODE_ELECTRON=true npm run build && electron-packager . vue-objccn --platform=darwin --out ./dist/$npm_package_version --overwrite --ignore=node_modules/* --ignore=.git --ignore=dist/$npm_package_version`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vue-objccn@1.0.0 build:mac 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! /Users/i/.npm/_logs/2019-01-24T03_44_21_631Z-debug.log
halfrost commented
NODE 的版本不对。