Skip to content

EspruinoTools to exe #176

@msaigla

Description

@msaigla

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions