[GH-ISSUE #2032] M1 无法运行 #1231

Closed
opened 2026-02-27 00:02:44 +03:00 by kerem · 1 comment
Owner

Originally created by @gavin8282 on GitHub (Jan 13, 2021).
Original GitHub issue: https://github.com/electerm/electerm/issues/2032

Electerm version:

1.11.5

Operating system(linux, macos, or windows7/8/10?):

macOS M1

Expected Behavior

Can you reproduce the same behavior in other terminal:

Current Behavior

Possible Solution

Steps to Reproduce

Context (Environment)

Detailed Description

21:38:08 debug › electerm start
(node:12658) electron: The default of contextIsolation is deprecated and will be changing from false to true in a future release of Electron. See https://github.com/electron/electron/issues/23506 for more information
innerError Error: Cannot find module '../build/Debug/pty.node'
Require stack:

  • /Applications/electerm.app/Contents/Resources/app.asar/node_modules/node-pty/lib/unixTerminal.js
  • /Applications/electerm.app/Contents/Resources/app.asar/node_modules/node-pty/lib/index.js
  • /Applications/electerm.app/Contents/Resources/app.asar/server/session.js
  • /Applications/electerm.app/Contents/Resources/app.asar/server/dispatch-center.js
  • /Applications/electerm.app/Contents/Resources/app.asar/server/server.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:972:15)
    at Module._load (internal/modules/cjs/loader.js:848:27)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12738)
    at Module.require (internal/modules/cjs/loader.js:1032:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object. (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/node-pty/lib/unixTerminal.js:31:15)
    at Module._compile (internal/modules/cjs/loader.js:1152:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10)
    at Module.load (internal/modules/cjs/loader.js:992:32)
    at Module._load (internal/modules/cjs/loader.js:885:14) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/Applications/electerm.app/Contents/Resources/app.asar/node_modules/node-pty/lib/unixTerminal.js',
    '/Applications/electerm.app/Contents/Resources/app.asar/node_modules/node-pty/lib/index.js',
    '/Applications/electerm.app/Contents/Resources/app.asar/server/session.js',
    '/Applications/electerm.app/Contents/Resources/app.asar/server/dispatch-center.js',
    '/Applications/electerm.app/Contents/Resources/app.asar/server/server.js'
    ]
    }
    /Applications/electerm.app/Contents/Resources/app.asar/node_modules/node-pty/lib/unixTerminal.js:36
    throw outerError;
    ^

Error: dlopen(/var/folders/z3/jn18x6rj1dz154qyjrt0ml2h0000gn/T/.org.chromium.Chromium.NQidAh, 1): no suitable image found. Did find:
/var/folders/z3/jn18x6rj1dz154qyjrt0ml2h0000gn/T/.org.chromium.Chromium.NQidAh: mach-o, but wrong architecture
/var/folders/z3/jn18x6rj1dz154qyjrt0ml2h0000gn/T/.org.chromium.Chromium.NQidAh: stat() failed with errno=17
at process.func [as dlopen] (electron/js2c/asar_bundle.js:5:1812)
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1203:18)
at Object.func [as .node] (electron/js2c/asar_bundle.js:5:2039)
at Module.load (internal/modules/cjs/loader.js:992:32)
at Module._load (internal/modules/cjs/loader.js:885:14)
at Function.f._load (electron/js2c/asar_bundle.js:5:12738)
at Module.require (internal/modules/cjs/loader.js:1032:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object. (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/node-pty/lib/unixTerminal.js:27:11)
at Module._compile (internal/modules/cjs/loader.js:1152:30)

Suggestions?

Originally created by @gavin8282 on GitHub (Jan 13, 2021). Original GitHub issue: https://github.com/electerm/electerm/issues/2032 <!--- Provide some basic info --> ## Electerm version: 1.11.5 ## Operating system(linux, macos, or windows7/8/10?): macOS M1 ## Expected Behavior <!--- Tell me what should happen --> ## Can you reproduce the same behavior in other terminal: <!--- If same bahavior happens in other terminal, maybe it is supposed to be like this or not a problem of terminal app --> ## Current Behavior <!--- Tell me what happens instead of the expected behavior --> ## Possible Solution <!--- Not obligatory, but suggest a fix/reason for the bug, --> ## Steps to Reproduce <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug. Include code to reproduce, if relevant --> 1. 2. 3. 4. ## Context (Environment) <!--- How has this issue affected you? What are you trying to accomplish? --> <!--- Providing context helps us come up with a solution that is most useful in the real world --> ## Detailed Description <!--- Provide a detailed description of the change or addition you are proposing --> 21:38:08 debug › electerm start (node:12658) electron: The default of contextIsolation is deprecated and will be changing from false to true in a future release of Electron. See https://github.com/electron/electron/issues/23506 for more information innerError Error: Cannot find module '../build/Debug/pty.node' Require stack: - /Applications/electerm.app/Contents/Resources/app.asar/node_modules/node-pty/lib/unixTerminal.js - /Applications/electerm.app/Contents/Resources/app.asar/node_modules/node-pty/lib/index.js - /Applications/electerm.app/Contents/Resources/app.asar/server/session.js - /Applications/electerm.app/Contents/Resources/app.asar/server/dispatch-center.js - /Applications/electerm.app/Contents/Resources/app.asar/server/server.js at Function.Module._resolveFilename (internal/modules/cjs/loader.js:972:15) at Module._load (internal/modules/cjs/loader.js:848:27) at Function.f._load (electron/js2c/asar_bundle.js:5:12738) at Module.require (internal/modules/cjs/loader.js:1032:19) at require (internal/modules/cjs/helpers.js:72:18) at Object.<anonymous> (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/node-pty/lib/unixTerminal.js:31:15) at Module._compile (internal/modules/cjs/loader.js:1152:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10) at Module.load (internal/modules/cjs/loader.js:992:32) at Module._load (internal/modules/cjs/loader.js:885:14) { code: 'MODULE_NOT_FOUND', requireStack: [ '/Applications/electerm.app/Contents/Resources/app.asar/node_modules/node-pty/lib/unixTerminal.js', '/Applications/electerm.app/Contents/Resources/app.asar/node_modules/node-pty/lib/index.js', '/Applications/electerm.app/Contents/Resources/app.asar/server/session.js', '/Applications/electerm.app/Contents/Resources/app.asar/server/dispatch-center.js', '/Applications/electerm.app/Contents/Resources/app.asar/server/server.js' ] } /Applications/electerm.app/Contents/Resources/app.asar/node_modules/node-pty/lib/unixTerminal.js:36 throw outerError; ^ Error: dlopen(/var/folders/z3/jn18x6rj1dz154qyjrt0ml2h0000gn/T/.org.chromium.Chromium.NQidAh, 1): no suitable image found. Did find: /var/folders/z3/jn18x6rj1dz154qyjrt0ml2h0000gn/T/.org.chromium.Chromium.NQidAh: mach-o, but wrong architecture /var/folders/z3/jn18x6rj1dz154qyjrt0ml2h0000gn/T/.org.chromium.Chromium.NQidAh: stat() failed with errno=17 at process.func [as dlopen] (electron/js2c/asar_bundle.js:5:1812) at Object.Module._extensions..node (internal/modules/cjs/loader.js:1203:18) at Object.func [as .node] (electron/js2c/asar_bundle.js:5:2039) at Module.load (internal/modules/cjs/loader.js:992:32) at Module._load (internal/modules/cjs/loader.js:885:14) at Function.f._load (electron/js2c/asar_bundle.js:5:12738) at Module.require (internal/modules/cjs/loader.js:1032:19) at require (internal/modules/cjs/helpers.js:72:18) at Object.<anonymous> (/Applications/electerm.app/Contents/Resources/app.asar/node_modules/node-pty/lib/unixTerminal.js:27:11) at Module._compile (internal/modules/cjs/loader.js:1152:30) ## Suggestions? <!--- Not a bug report, just some thoughts or suggestions? It is totally OK and welcome too -->
kerem closed this issue 2026-02-27 00:02:44 +03:00
Author
Owner

@zxdong262 commented on GitHub (Jan 14, 2021):

合并到--> #2009

<!-- gh-comment-id:759868972 --> @zxdong262 commented on GitHub (Jan 14, 2021): 合并到--> #2009
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm#1231
No description provided.