socketsupply / socket

A cross-platform runtime for Web developers to build desktop & mobile apps for any OS using any frontend library.
https://socketsupply.co/guides
Other
1.6k stars 75 forks source link

Bug: `ssc init` fails to run on Windows with certain User Names #960

Open jstarpl opened 5 months ago

jstarpl commented 5 months ago

What OS are you using (uname -a, or Windows version)?

Windows 11 23H2

What version Socket Runtime are you using?

0.5.4

What programming language are you using (C/C++/Go/Rust)?

N/A

What did you expect to see and what you saw instead?

I expected ssc init to scaffold the project.

Instead I got:

❯  ssc init
Error: spawn powershell.exe ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:286:19)
    at onErrorNT (node:internal/child_process:484:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawn powershell.exe',
  path: 'powershell.exe',
  spawnargs: [ '.\\bin\\install.ps1', '-fte:all' ]
}
jstarpl commented 5 months ago

I've created a PR that fixed this issue for me: https://github.com/socketsupply/socket/pull/959