DEV Community

Discussion on: Electron Apps Made Easy with Create React App and Electron Forge

Collapse
 
macduff111 profile image
macduff111

Hi
thanks for this it's really useful. I can get the dev version running no problem, but when I try and package with npm run make I get the following error:

Preparing to Package Application for arch: x64
An unhandled rejection has occurred inside Forge:
{ Error: EEXIST: file already exists, mkdir '/var/folders/jh/7xh_52cx65566d0fhgf01z6h0000gn/T/electron-packager/darwin-x64-template'
  errno: -17,
  code: 'EEXIST',
  syscall: 'mkdir',
  path: '/var/folders/jh/7xh_52cx65566d0fhgf01z6h0000gn/T/electron-packager/darwin-x64-template' }

Electron Forge was terminated. Location:
{}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! cra-electron-forge-demo@0.1.0 make: `react-scripts build && electron-forge make`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the cra-electron-forge-demo@0.1.0 make script.
Enter fullscreen mode Exit fullscreen mode

I tried Googling, but couldn't find any similar problem. Any ideas?
Thanks

Collapse
 
macduff111 profile image
macduff111

I updated npm and all packages and it now runs OK