hyper: 3.1.0 Fails to start in ubuntu 18.04
- I am on the latest Hyper.app version
- I have searched the issues of this repo and believe that this is not a duplicate
- OS version and name: ubuntu 18.04
- Hyper.app version: 3.1.0
- Link of a Gist with the contents of your .hyper.js:
- Relevant information from devtools (CMD+ALT+I on macOS, CTRL+SHIFT+I elsewhere):
- The issue is reproducible in vanilla Hyper.app:
Issue
`./Hyper-3.1.0.AppImage Plugin hyper-search (0.4.0) loaded. innerError Error: Cannot find module ‘…/build/Debug/pty.node’ Require stack:
- /tmp/.mount_Hyper-gxbGOV/resources/app.asar/node_modules/node-pty/lib/unixTerminal.js
- /tmp/.mount_Hyper-gxbGOV/resources/app.asar/node_modules/node-pty/lib/index.js
- /tmp/.mount_Hyper-gxbGOV/resources/app.asar/session.js
- /tmp/.mount_Hyper-gxbGOV/resources/app.asar/ui/window.js
- /tmp/.mount_Hyper-gxbGOV/resources/app.asar/index.js
- at Module._resolveFilename (internal/modules/cjs/loader.js:887:15)
at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128)
at Module._load (internal/modules/cjs/loader.js:732:27)
at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
at Function._load (/tmp/.mount_Hyper-gxbGOV/resources/app.asar/plugins.js:97:37)
at Module.require (internal/modules/cjs/loader.js:959:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (/tmp/.mount_Hyper-gxbGOV/resources/app.asar/node_modules/node-pty/lib/unixTerminal.js:30:15)
at Module._compile (internal/modules/cjs/loader.js:1078:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1108:10) {
code: ‘MODULE_NOT_FOUND’,
requireStack: [
‘/tmp/.mount_Hyper-gxbGOV/resources/app.asar/node_modules/node-pty/lib/unixTerminal.js’,
‘/tmp/.mount_Hyper-gxbGOV/resources/app.asar/node_modules/node-pty/lib/index.js’,
‘/tmp/.mount_Hyper-gxbGOV/resources/app.asar/session.js’,
‘/tmp/.mount_Hyper-gxbGOV/resources/app.asar/ui/window.js’,
‘/tmp/.mount_Hyper-gxbGOV/resources/app.asar/index.js’,
undefined
]
}
A JavaScript error occurred in the main process
Uncaught Exception:
Error:
node-ptyfailed to load. Typically this means that it was built incorrectly. Please check thereadme.mdto more info. at createNodePtyError (/tmp/.mount_Hyper-gxbGOV/resources/app.asar/session.js:33:34) at Object.<anonymous> (/tmp/.mount_Hyper-gxbGOV/resources/app.asar/session.js:40:11) at Module._compile (internal/modules/cjs/loader.js:1078:30) at Object.Module._extensions…js (internal/modules/cjs/loader.js:1108:10) at Module.load (internal/modules/cjs/loader.js:935:32) at Module._load (internal/modules/cjs/loader.js:776:14) at Function.f._load (electron/js2c/asar_bundle.js:5:12913) at Function._load (/tmp/.mount_Hyper-gxbGOV/resources/app.asar/plugins.js:97:37) at Module.require (internal/modules/cjs/loader.js:959:19) at require (internal/modules/cjs/helpers.js:88:18)`
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 2
- Comments: 18
I have the same issue with Ubuntu 21.04 aarch64 when running Hyper-3.1.2-arm64.AppImage
`> ./Hyper-3.1.2-arm64.AppImage innerError Error: Cannot find module ‘…/build/Debug/pty.node’ Require stack:
node-ptyfailed to load. Typically this means that it was built incorrectly. Please check thereadme.mdto more info. at createNodePtyError (/tmp/.mount_Hyper-qN9aGx/resources/app.asar/session.js:33:34) at Object.<anonymous> (/tmp/.mount_Hyper-qN9aGx/resources/app.asar/session.js:40:11) at Module._compile (internal/modules/cjs/loader.js:1078:30) at Object.Module._extensions…js (internal/modules/cjs/loader.js:1108:10) at Module.load (internal/modules/cjs/loader.js:935:32) at Module._load (internal/modules/cjs/loader.js:776:14) at Function.f._load (electron/js2c/asar_bundle.js:5:12913) at Function._load (/tmp/.mount_Hyper-qN9aGx/resources/app.asar/plugins.js:99:37) at Module.require (internal/modules/cjs/loader.js:959:19) at require (internal/modules/cjs/helpers.js:88:18)`
I’ll set the ci to run on ubuntu 18 for now, we can change we figure this out.
Yeah, later realized that electron-builder also rebuilds the native dependencies. You can try out https://github.com/LabhanshAgrawal/hyper/actions/runs/1043933646#artifacts , have disabled that rebuild also. It didn’t work for me though
@Tyriar can you please help out a bit here. Having issues with node-pty on Ubuntu 18 unless rebuilt on the same.
@Sangkwun also try the one from https://github.com/LabhanshAgrawal/hyper/actions/runs/1025164478#artifacts It’s built on ubuntu 20 but uses pre-built node-pty