Skip to content

A JavaScript error occurred in the main process #601

@samshum

Description

@samshum

重现链接

No response

重现步骤

在 MACOS 13.7.8 的 3.7 GHz 6-Core Intel Core i5 运行出现错误,请核实。

Uncaught Exception:
Error: Could not load the "sharp" module using the darwin-x64 runtime
Possible solutions:

  • Ensure optional dependencies can be installed:
    npm install --include=optional sharp
  • Ensure your package manager supports multi-platform installation:
    See https://sharp.pixelplumbing.com/install#cross-platform
  • Add platform-specific dependencies:
    npm install --os=darwin --cpu=x64 sharp
  • Consult the installation documentation:
    See https://sharp.pixelplumbing.com/install
    at Object. (/Applications/AlgerMusicPlayer.app/Contents/Resources/app.asar/node_modules/sharp/lib/sharp.js:120:9)
    at Module._compile (node:internal/modules/cjs/loader:1714:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1848:10)
    at Module.load (node:internal/modules/cjs/loader:1448:32)
    at Module._load (node:internal/modules/cjs/loader:1270:12)
    at c._load (node:electron/js2c/node_init:2:17993)
    at TracingChannel.traceSync (node:diagnostics_channel:328:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:244:24)
    at Module.require (node:internal/modules/cjs/loader:1470:12)
    at require (node:internal/modules/helpers:147:16)

期望结果

No response

实际结果

No response

框架版本

No response

浏览器版本

No response

系统版本

13.7.8

Node版本

20.18

补充说明

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions