-
Notifications
You must be signed in to change notification settings - Fork 94
Open
Description
Hi
I want to use EspruinoTools without nodejs.
I'm trying to turn EspruinoTools into an exe using pkg.
But I get an error on time using the command .\dist\espruino-win.exe -p COM6
:
Espruino Command-line Tool 0.1.54
-----------------------------------
Connecting to 'COM6'
(node:25752) [DEP0128] DeprecationWarning: Invalid 'main' field in 'C:\snapshot\EspruinoTools-master\node_modules\node-blob\package.json' of 'server.js'. Please either fix that or report it to the module author
(Use `espruino-win --trace-deprecation ...` to show where the warning was created)
undefined:56
} else throw err;
^
Error: spawn C:\snapshot\EspruinoTools-master\node_modules\noble-winrt\prebuilt\BLEServer.exe ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
at onErrorNT (node:internal/child_process:478:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
at process.runNextTicks [as _tickCallback] (node:internal/process/task_queues:65:3)
at Function.runMain (pkg/prelude/bootstrap.js:1980:13)
at node:internal/main/run_main_module:17:47
Emitted 'error' event on ChildProcess instance at:
at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12)
at onErrorNT (node:internal/child_process:478:16)
[... lines matching original stack trace ...]
at node:internal/main/run_main_module:17:47 {
errno: -4058,
code: 'ENOENT',
syscall: 'spawn C:\\snapshot\\EspruinoTools-master\\node_modules\\noble-winrt\\prebuilt\\BLEServer.exe',
path: 'C:\\snapshot\\EspruinoTools-master\\node_modules\\noble-winrt\\prebuilt\\BLEServer.exe',
spawnargs: [ '' ]
}
PKG settings:
"pkg": {
"scripts": [
"libs/**/*.js",
"espruino.js",
"core/**/*.js",
"plugins/**/*.js"
],
"outputPath": "dist"
},
Metadata
Metadata
Assignees
Labels
No labels