node-pty icon indicating copy to clipboard operation
node-pty copied to clipboard

Electron example: does not work with v20

Open codestitch opened this issue 1 year ago • 1 comments

Environment details

  • OS: windows
  • OS version: 11
  • node-pty version: 0.10.1
  • electron: 20.1.4
  • xterm: 4.2.0
  • electron-rebuild: 3.2.9

Issue description

Tried building from the example (node-pty/examples/electron). It worked! However, when upgrading electron and other libs would wouldn't work.

./npm-install.sh

# Electron's version.
export npm_config_target=20.1.4
# The architecture of Electron, can be ia32 or x64.
export npm_config_arch=x64
export npm_config_target_arch=x64
# Download headers for Electron.
export npm_config_disturl=https://www.electronjs.org/headers
# Tell node-pre-gyp that we are building for Electron.
export npm_config_runtime=electron
# Tell node-pre-gyp to build module from source code.
export npm_config_build_from_source=true
# Install all dependencies, and store cache to ~/.electron-gyp.
HOME=~/.electron-gyp npm install

package.json

{
  "name": "node-pty-electron-example",
  "version": "1.0.0",
  "description": "A minimal node-pty Electron example",
  "main": "main.js",
  "scripts": {
    "start": "electron . --ignore-gpu-blacklist",
    "rebuild": "electron-rebuild node-pty"
  },
  "repository": "https://github.com/Tyriar/node-pty",
  "author": "Tyriar",
  "dependencies": {
    "electron": "^20.1.4",
    "node-pty": "^0.10.1",
    "xterm": "4.2.0"
  },
  "devDependencies": {
    "electron-rebuild": "^3.2.9"
  }
}

When running: npm start the terminal doesn't appear.

When rebuilding: npm rebuild

image

Will appreciate your help.

Thank you

codestitch avatar Sep 15 '22 11:09 codestitch

@codestitch this might be of some help.

z3bra5hax avatar Sep 17 '22 03:09 z3bra5hax

thank you @z3bra5hax

codestitch avatar Sep 29 '22 16:09 codestitch

@codestitch Can this be closed then? If so, please close this issue.

daniel-brenot avatar Nov 12 '22 06:11 daniel-brenot