1
votes

I've started with a clean VM of windows 10. Installed node.js, npm, upgraded npm and installed electron-packager -g.

I have a simple electron app that I wrote which packages fine on Mac. But when I do this from the app directory:

electron-packager .

It yields:

Packaging app for platform win32 x64 using electron v8.1.0 ENOENT: no such file or directory, rename 'C:\Users\ROBERT~1\AppData\Local\Temp\electron-packager\win32-x64\myApp-win32-x64\electron.exe' -> 'C:\Users\ROBERT~1\AppData\Local\Temp\electron-packager\win32-x64\myApp-win32-x64\myApp.exe'

However, the electron.exe file doesn't exist in that specified directory.

I'm a noob so I'm probably doing something wrong but I think I followed the correct sequence. Any ideas?

1

1 Answers

0
votes

I had the same issue! Judging by your username ROBERT~1 it seems that you have a space in your name. I also had a space. Change your username (a long process) or create a new user (without spaces). That fixed my issue :) Good luck!