RunJS icon indicating copy to clipboard operation
RunJS copied to clipboard

Package `sharp` gets installed but fails to run

Open kapooostin opened this issue 4 months ago • 9 comments

I installed sharp package. But it cannot be loaded:

Error: Could not load the "sharp" module using the darwin-x64 runtime

Is there any way to use it in RunJS?

My log is below

{
  "version": "2.11.0",
  "platform": "darwin",
  "arch": "x64",
  "activated": true,
  "logs": [
    {
      "path": "/Users/USER/Library/Logs/runjs/main.log",
      "lines": [
        "[2024-03-12 17:07:06.694] [warn]  sysctl shell command to check for macOS Rosetta environment failed: Error: Command failed: sysctl sysctl.proc_translated",
        "sysctl: unknown oid 'sysctl.proc_translated'",
        "",
        "[2024-03-13 22:23:44.537] [warn]  sysctl shell command to check for macOS Rosetta environment failed: Error: Command failed: sysctl sysctl.proc_translated",
        "sysctl: unknown oid 'sysctl.proc_translated'",
        "",
        "[2024-04-05 15:07:44.062] [error] Unhandled TypeError: Cannot read properties of undefined (reading 'libraryDefaultDir')",
        "    at Function.resolvePathFn (/Applications/RunJS.app/Contents/Resources/app.asar/entry-bundle.js:14:97807)",
        "    at Function.readAllLogs (/Applications/RunJS.app/Contents/Resources/app.asar/entry-bundle.js:14:97314)",
        "    at click (/Applications/RunJS.app/Contents/Resources/app.asar/entry-bundle.js:8:90678)",
        "    at MenuItem.click (node:electron/js2c/browser_init:2:29559)",
        "    at a._executeCommand (node:electron/js2c/browser_init:2:34987)",
        ""
      ]
    }
  ]
}

kapooostin avatar Apr 05 '24 13:04 kapooostin