Packaging error: "Cannot run with Node 10.x.x"
memuller opened this issue · comments
Matheus E. Muller commented
Trying to build the packages using recent Node versions ( >= 10.x) results in:
CANNOT RUN WITH NODE 10.0.0
Electron Packager requires Node 4.0 or above.
This is due to a bug in electron-packager, where Node versions >= 10.0 evaluate as inferior than 4 (?!) . The bug is detailed here and has been fixed as of electron-packager 12.0.2.
Simply updating the required electron-packager version fixes the issue.
How to replicate
nvm use v10.5.0
npm run build