Questions tagged [node-pty]
The node-pty tag has no usage guidance.
node-pty
23
questions
0
votes
0
answers
70
views
node-pty installation on server is showing npm error code -1
Whenever I am doing
npm i node-pty
it is giving me this error
0 verbose cli C:\Program Files\nodejs\node.exe C:\Users\DELL\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js
1 info using [email protected]
...
0
votes
0
answers
20
views
File not found at new WindowsPtyAgent when using pty for a spawn process of running another file through cmd
I am working on a Desktop app with electron framework which always has a terminal open the output of the processes run is shown in that terminal. I am using node-pty for this but when I try to pass a ...
0
votes
3
answers
303
views
Why i am getting gyp error while downloading node-pty on windows 11
This is the error i get when i run npm i node-pty
npm ERR! code 1
npm ERR! path C:\Users\Vojas Gonnade\OneDrive\Desktop\Project 2 - AI terminal\terminal-ai\node_modules\node-pty
npm ERR! command ...
1
vote
0
answers
239
views
Alternatives to node-pty for Bun
I am writing the backend for an administration Web interface and started the work with Node.js. To provide terminal functionality I used the node-pty package. Since bundling with TypeScript and Node....
2
votes
0
answers
150
views
Node-Pty "posix_spawnp failed" opening and closing many terminals
I am trying to use Node-Pty to run shell commands from within Electron. After each command finishes executing, I need to know that it has finished executing and get its return code.
Currently I'm ...
1
vote
1
answer
318
views
Node-pty and ElectronJS
I am trying to use node-pty from within an ElectronJS app, but I'm struggling to get it to work.
I am using Electron React Boilerplate as the base for my project.
Repro of the issue:
git clone --depth ...
0
votes
0
answers
201
views
Not Found node-pty - ElectronJS
I am developing a simple Desktop app where I need to embed an interactive terminal like Terminal in VSCode. But I get the following errors constantly, while the node.pty and all dependencies are ...
1
vote
0
answers
342
views
Can't find module node-pty after changing name of directory
I'm working on a Typescript React & Electron app that has node-pty as a dependency. I have it installed in release/app because it's a native dependency and won't work if it's in the regular node-...
0
votes
1
answer
278
views
Object has been destroyed at win.webContents.send - Electron/node-pty
I am trying to create a terminal in my Electron app (similar to the one in vscode).
When I try to send the data that is created when the terminal (with win.webContents.send() an error occurs)
How can ...
1
vote
1
answer
290
views
Code "The terminal process failed to launch" Error
Had this error on Code (1.76.1) when trying to open the integrated terminal.
The terminal process failed to launch: A native exception occurred during launch (/usr/lib/code/node_modules.asar.unpacked/...
0
votes
1
answer
892
views
A file called pty.node.js is missing after installing "node-pty" in a electron-forge project. How can I install node-pty in Linux
After installing node-pty (an external module used to create pseudo terminals using node js) in a boilerplate electron-forge project; I found it throwing an error that some core module of node-pty is ...
0
votes
1
answer
236
views
How do I set the start path of powershell?
As far i know(let me know if you have a better solution) to start powershell in a directory you have to do something like this:
powershell.exe -NoExit -command "& {Set-Location C:\my\path\...
2
votes
2
answers
1k
views
How do I correctly launch a shell environment with node-pty in Electron?
I have an Electron App that's using node-pty to create a pseudo-terminal instance. This instance is created as follows:
const pty = require('node-pty');
const os = require('os');
const shell = process....
0
votes
1
answer
263
views
/app/.jdk/bin/java: cannot execute binary file using node-pty on Heroku
I am trying to create a node-pty process. When developing locally, this works fine and there is no problem. However, when this runs on Heroku, it gives the error: /app/.jdk/bin/java: cannot execute ...
0
votes
0
answers
260
views
require node-pty results in TypeError: Object.setPrototypeOf: expected an object or null, got undefined
TL;DR: If I try to do var pty = require('node-pty'); results in TypeError: Object.setPrototypeOf: expected an object or null, got undefined keep reading for context
Hi, I'm trying to build a proof of ...