spawn C:\Windows\system32\cmd.exe ENOENT when sourcedir is not a directory
See original GitHub issuePlease describe your issue: Hi, i’m actualy doing a local chat, using socket.io & electron. Everythings works fine, but when i try to compile my app (client side (obviously) ) electron-packager give me an error.
Console output when you run electron-packager with the environment variable DEBUG=electron-packager
. Please include the stack trace if one exists.
C:\Users\alexr\Documents\prog\js\Shou>electron-packager ./client/main.js app.exe --platform=win32 --arch=ia32 --electron-version=1.4.15
Packaging app for platform win32 ia32 using electron v1.4.15
spawn C:\Windows\system32\cmd.exe ENOENT
``
What command line arguments are you passing? Alternatively, if you are using the API, what
parameters are you passing to the packager()
function?
./client/main.js app.exe --platform=win32 --arch=ia32 --electron-version=1.4.15
I haven’t use the API
What i did
First i check for this path, and well i get cmd.exe !
Then i check for sys variables, and i get ComSpec = C:\Windows\system32\cmd.exe
.
I don’t know what to do next…
Computer info OS: WIndows 10 node: 7.4.0 npm: 4.0.5
Thanks !
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (2 by maintainers)
Oh, I see what the problem is. You set the first argument as the path to the main script. Per the documentation, the first argument is
sourcedir
:sh*t, sorry i skipped the 1st grade…