You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.
I've confirmed that BLEServer.exe exists at that path and that the app has read/write access to that file. I've also tried running the app as administrator and using cross-spawn instead of child-process.
I see a lot of issues out there about running spawn in Node.js successfully on Windows. However, none of the provided solutions seem to be working: nodejs/node-v0.x-archive#2318
The text was updated successfully, but these errors were encountered:
Wow, after about two days of detective work I figured this out.
It's nothing to do with noble-winrt. There's a tricky work around required when it comes to getting the correct path to 'unpacked' node modules in built Electron apps (the 'packed' version of the module in the asar archive can't be accessed by the system's spawn command). electron/electron#6262
My solution was to use this small package, hazardous, that checks whether a module is in the unpacked node_modules before resolving the path.
Thanks for the suggestions though, Uri! You kept my morale high 😆
Dealing with an issue that's only popping up on Windows 10 and the release version of an electron app that's been installed into system programs.
Uncaught Error: spawn C:\Users\jdpig\AppData\Local\Programs\BrainWaves\resources\app.asar\node_modules\noble-winrt\prebuilt\BLEServer.exe ENOENT
I've confirmed that
BLEServer.exe
exists at that path and that the app has read/write access to that file. I've also tried running the app as administrator and usingcross-spawn
instead ofchild-process
.I see a lot of issues out there about running
spawn
in Node.js successfully on Windows. However, none of the provided solutions seem to be working: nodejs/node-v0.x-archive#2318The text was updated successfully, but these errors were encountered: