`node-pty` failed to load NIXOS
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 44.7k
- Forks
- 3.6k
- Avg merge
- 21m
- Merged PRs (30d)
- 1
Description
innerError Error: Cannot find module '../build/Debug/pty.node'
Require stack:
- /nix/store/zvhz3g3j66643gc8pz6m82c4fs8p94g5-hyper-3.4.1/opt/Hyper/resources/app.asar/node_modules/node-pty/lib/unixTerminal.js
- /nix/store/zvhz3g3j66643gc8pz6m82c4fs8p94g5-hyper-3.4.1/opt/Hyper/resources/app.asar/node_modules/node-pty/lib/index.js
- /nix/store/zvhz3g3j66643gc8pz6m82c4fs8p94g5-hyper-3.4.1/opt/Hyper/resources/app.asar/session.js
- /nix/store/zvhz3g3j66643gc8pz6m82c4fs8p94g5-hyper-3.4.1/opt/Hyper/resources/app.asar/ui/window.js
- /nix/store/zvhz3g3j66643gc8pz6m82c4fs8p94g5-hyper-3.4.1/opt/Hyper/resources/app.asar/index.js
-
at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
at n._resolveFilename (node:electron/js2c/browser_init:245:1105)
at Module._load (node:internal/modules/cjs/loader:785:27)
at c._load (node:electron/js2c/asar_bundle:5:13343)
at Function._load (/nix/store/zvhz3g3j66643gc8pz6m82c4fs8p94g5-hyper-3.4.1/opt/Hyper/resources/app.asar/plugins.js:103:37)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/nix/store/zvhz3g3j66643gc8pz6m82c4fs8p94g5-hyper-3.4.1/opt/Hyper/resources/app.asar/node_modules/node-pty/lib/unixTerminal.js:30:15)
at Module._compile (node:internal/modules/cjs/loader:1120:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1175:10) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/nix/store/zvhz3g3j66643gc8pz6m82c4fs8p94g5-hyper-3.4.1/opt/Hyper/resources/app.asar/node_modules/node-pty/lib/unixTerminal.js',
'/nix/store/zvhz3g3j66643gc8pz6m82c4fs8p94g5-hyper-3.4.1/opt/Hyper/resources/app.asar/node_modules/node-pty/lib/index.js',
'/nix/store/zvhz3g3j66643gc8pz6m82c4fs8p94g5-hyper-3.4.1/opt/Hyper/resources/app.asar/session.js',
'/nix/store/zvhz3g3j66643gc8pz6m82c4fs8p94g5-hyper-3.4.1/opt/Hyper/resources/app.asar/ui/window.js',
'/nix/store/zvhz3g3j66643gc8pz6m82c4fs8p94g5-hyper-3.4.1/opt/Hyper/resources/app.asar/index.js',
undefined
]
}
A JavaScript error occurred in the main process
Uncaught Exception:
Error: `node-pty` failed to load. Typically this means that it was built incorrectly. Please check the `readme.md` to more info.
at createNodePtyError (/nix/store/zvhz3g3j66643gc8pz6m82c4fs8p94g5-hyper-3.4.1/opt/Hyper/resources/app.asar/session.js:39:34)
at Object.<anonymous> (/nix/store/zvhz3g3j66643gc8pz6m82c4fs8p94g5-hyper-3.4.1/opt/Hyper/resources/app.asar/session.js:46:11)
at Module._compile (node:internal/modules/cjs/loader:1120:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1175:10)
at Module.load (node:internal/modules/cjs/loader:988:32)
at Module._load (node:internal/modules/cjs/loader:829:12)
at c._load (node:electron/js2c/asar_bundle:5:13343)
at Function._load (/nix/store/zvhz3g3j66643gc8pz6m82c4fs8p94g5-hyper-3.4.1/opt/Hyper/resources/app.asar/plugins.js:103:37)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at require (node:internal/modules/cjs/helpers:102:18)
Installed it using configuration.nix in nixos.
hyper does not open.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure when Hyper is installed through configuration.nix on NixOS. Start with node-pty/lib/unixTerminal.js and the loading path through node-pty/lib/index.js and session.js; consult readme.md for the native-module build requirements. Done means Hyper opens without the node-pty MODULE_NOT_FOUND error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- electron, javascript, nixos, nodejs
- Domain
- build-system, desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100