Questions tagged [node-pty]
21 questions
10
votes
1 answer
Installation Hangs after "Successfully installed Python 2.7" while installing production windows-build-tools
Trying to install windows-build-tools using the following command
npm install -g --production windows-build-tools
But seems it hangs after installing python2.7. I have waited for almost 30 minutes but not moving forward. Any solution??
----------…

ANIK ISLAM SHOJIB
- 3,002
- 1
- 27
- 36
3
votes
1 answer
Cannot install node-pty-prebuilt - too many errors
I'm trying to run expo opt-in-google-play-signing but it throws an error after I paste the encryption key of:
fatal error: too many errors emitted, stopping now [-ferror-limit=]
11 warnings and 20 errors generated.
and
Run npm -g install…

Rich
- 970
- 2
- 16
- 42
2
votes
1 answer
How to combine node-pty and xterm
I added a terminal to my web application using node-pty on the server, ng-termianl (xterm.js) on the client and socket.io for the communication. I have it basically working but I have some issues and maybe I'm making things to complicated so here…

Ken
- 1,529
- 12
- 12
2
votes
0 answers
error while install node-pty libaray using npm
getting the following error while installing the node-pty module of the node.js using npm according to the documentation I use the following command npm i node-pty -g my system and node version is listed following and also window build tools also…

Shri Mali
- 69
- 5
1
vote
0 answers
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-modules folder at the top level.
Basically, I changed…

non
- 29
- 5
1
vote
1 answer
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/node-pty/build/Release/pty.node: undefined…

Stini
- 11
- 2
1
vote
1 answer
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.env[os.platform() === 'win32' ? 'COMSPEC' :…

JasonBourne
- 35
- 4
1
vote
1 answer
Adding custom commands to terminal along side application
I am working on an application where we are using xtermjs and node-pty inside of an electron application. We are adding a terminal to our application and would like to add some custom commands that are used in the terminal that are related to our…

prolink007
- 33,872
- 24
- 117
- 185
0
votes
0 answers
How to add the hostname and current working directory to the xterm.js terminal using node-pty in electron.js
I want to replace the bash-3.2 with the hostname and current working directory. (Like a vs code's integrated terminal)
I am using electron.js with xterm.js and node-pty
Tried below code to spawn node-pty process.
const ptyProcess =…

Shubham Ganmote
- 15
- 4
0
votes
1 answer
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 I send the data back to the renderer without this…

ghosty
- 53
- 6
0
votes
0 answers
How do I send output received from node-pty to res.json() in NodeJS
This is the code I tried to execute using the help of documentation at node-pty and the sample code. I want to send the data received at ls as a response json object.
app.post("/try",(req,res)=>{
command=req.body.command
var shell =…
0
votes
0 answers
xterm-addon-search return false
I have a write code like about search into the xtermjs terminal. But it return always false
const term = new Terminal({
cursorStyle: "block",
cursorBlink: true,
theme: {
foreground: isDarkMode ? "black" : "white",
…

Vidhi Patel
- 29
- 3
0
votes
0 answers
Could run Electron-rebuild with node-pty
I am trying to create an electron app using react, with terminal integration.
I followed this tutorial to create basic react + electron (without the weather thingy): https://www.section.io/engineering-education/desktop-application-with-react/
I have…

jedion
- 624
- 1
- 7
- 18
0
votes
0 answers
How to virtually press any key in a node-pty terminal
Everyone knows that we create a boilerplate node-pty terminal in this way-
const { spawn } = require("node-pty")
const ptyProcess = spawn("bash", [], {
name: "xterm-color",
cols: 30, rows: 30,
cwd: process.cwd.HOME,
env:…

Hit and Run
- 91
- 5
0
votes
1 answer
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 importing another module which nodejs is failing…

Hit and Run
- 91
- 5