microsoft / node-pty

Fork pseudoterminals in Node.JS
Other
1.48k stars 244 forks source link

node-pty does not work with latest versions of electron #728

Open aswathpp97 opened 6 days ago

aswathpp97 commented 6 days ago

The node-pty package is failing to rebuild in our Electron environment, leading to an unhandled rejection error during the build process.

node v - 20.18.0 electron - 33.2.0 node-pty - 1.0.0

gyp verb clean removing "build" directory
  gyp verb download using dist-url https://www.electronjs.org/headers
  gyp verb find Python Python is not set from command line or npm configuration
  gyp verb find Python Python is not set from environment variable PYTHON
  gyp verb find Python checking if "python3" can be used
  gyp verb find Python - executing "python3" to get executable path
  gyp sill find Python execFile: exec = "python3"
  gyp sill find Python execFile: args = ["-c","import sys; sys.stdout.buffer.write(sys.executable.encode('utf-8'));"]
  gyp sill find Python execFile: opts = {"env":{"npm_package_devDependencies_ts_node":"^10.9.2","npm_package_devDependencies__types_node":"^22.9.0","LANGUAGE":"en_IN:en","US
  ER":<user>,"npm_config_version_commit_hooks":"true","npm_config_user_agent":"yarn/1.22.22 npm/? node/v20.18.0 linux
  x64","npm_config_bin_links":"true","SSH_AGENT_PID":"2779","XDG_SESSION_TYPE":"x11","npm_node_execpath":"<home-directory>/.nvm/versions/node/v20.18.0/bin/node","npm_config_init
  _version":"1.0.0","SHLVL":"1","npm_package_devDependencies_eslint_import_resolver_typescript":"^3.6.1","npm_package_devDependencies__electron_forge_plugin_fuses":"^7.5.0",
  "HOME":"<home-directory>","OLDPWD":"<home-directory>/","LESS":"-R","npm_package_devDependencies__typescript_eslint_parser":"^8.12.2","DESKTOP_SESSION":"ubuntu","NVM_BIN":"<home-directory>/.nvm/versions/node/v20.18.0/bin","ZSH":"<home-directory>/.oh-my-zsh","LSCOLORS":"Gxfxcxdxbxegedabagacad","NVM_INC":"<home-directory>/.nvm/versions/node/v20.18.0/include
  /node","npm_package_engines_node":">=20.0.0","npm_package_devDependencies__electron_forge_plugin_auto_unpack_natives":"^7.5.0","npm_config_init_license":"MIT","GTK_MODULES
  ":"gail:atk-bridge","GNOME_SHELL_SESSION_MODE":"ubuntu","FPATH":"<home-directory>/.oh-my-zsh/plugins/git:<home-directory>/.oh-my-zsh/functions:<home-directory>/.oh-my-zsh/completions:
  <home-directory>/.oh-my-zsh/cache/completions:<home-directory>/.zsh/completions:/usr/local/share/zsh/site-functions:/usr/share/zsh/vendor-functions:/usr/share/zsh/vendor-completio
  ns:/usr/share/zsh/functions/Calendar:/usr/share/zsh/functions/Chpwd:/usr/share/zsh/functions/Completion:/usr/share/zsh/functions/Completion/AIX:/usr/share/zsh/functions/Co
  mpletion/BSD:/usr/share/zsh/functions/Completion/Base:/usr/share/zsh/functions/Completion/Cygwin:/usr/share/zsh/functions/Completion/Darwin:/usr/share/zsh/functions/Comple
  tion/Debian:/usr/share/zsh/functions/Completion/Linux:/usr/share/zsh/functions/Completion/Mandriva:/usr/share/zsh/functions/Completion/Redhat:/usr/share/zsh/functions/Comp
  letion/Solaris:/usr/share/zsh/functions/Completion/Unix:/usr/share/zsh/functions/Completion/X:/usr/share/zsh/functions/Completion/Zsh:/usr/share/zsh/functions/Completion/o
  penSUSE:/usr/share/zsh/functions/Exceptions:/usr/share/zsh/functions/MIME:/usr/share/zsh/functions/Math:/usr/share/zsh/functions/Misc:/usr/share/zsh/functions/Newuser:/usr
  /share/zsh/functions/Prompts:/usr/share/zsh/functions/TCP:/usr/share/zsh/functions/VCS_Info:/usr/share/zsh/functions/VCS_Info/Backends:/usr/share/zsh/functions/Zftp:/usr/s
  hare/zsh/functions/Zle","PAGER":"less","YARN_WRAP_OUTPUT":"false","npm_package_devDependencies__types_dotenv_webpack":"^7.0.8","npm_package_devDependencies__types_axios":"
  ^0.14.4","npm_config_version_tag_prefix":"v","MANAGERPID":"2603","npm_package_dependencies_webpack":"^5.96.1","npm_package_devDependencies_node_loader":"^2.0.0","npm_packa
  ge_devDependencies__vercel_webpack_asset_relocator_loader":"1.7.3","DBUS_SESSION_BUS_ADDRESS":"unix:path=/run/user/1000/bus","npm_package_dependencies_fix_path":"^4.0.0","
  npm_package_dependencies_electron_dl":"^4.0.0","npm_package_dependencies_copy_webpack_plugin":"^12.0.2","COLORTERM":"truecolor","npm_package_description":"## Getting
  started","npm_package_dependencies_electron_squirrel_startup":"^1.0.0","npm_package_devDependencies_typescript":"^5.6.3","NVM_DIR":"<home-directory>/.nvm","npm_package_readmeF
  ilename":"README.md","IM_CONFIG_PHASE":"1","MANDATORY_PATH":"/usr/share/gconf/ubuntu.mandatory.path","npm_package_devDependencies_ts_loader":"^9.5.1","npm_package_devDepen
  dencies_prettier":"^3.3.2","npm_package_devDependencies__electron_forge_maker_rpm":"^7.5.0","LOGNAME":<user>,"npm_package_devDependencies_eslint_plugin_import":"^2.31.0"
  ,"_":"<home-directory>/.nvm/versions/node/v20.18.0/bin/yarn","JOURNAL_STREAM":"8:61503","DEFAULTS_PATH":"/usr/share/gconf/ubuntu.default.path","XDG_SESSION_CLASS":"user","npm_
  package_devDependencies__typescript_eslint_eslint_plugin":"^8.12.2","npm_package_devDependencies__electron_forge_maker_deb":"^7.5.0","npm_package_scripts_lint":"eslint
  --ext .ts,.tsx .","npm_config_registry":"https://registry.yarnpkg.com","USERNAME":<user>,"TERM":"dumb","npm_package_dependencies_linux_os_info":"2.0.0","npm_package_devD
  ependencies__electron_forge_maker_zip":"^7.5.0","GNOME_DESKTOP_SESSION_ID":"this-is-deprecated","npm_package_scripts_start":"electron-forge
  start","npm_config_ignore_scripts":"","WINDOWPATH":"2","npm_package_dependencies_axios":"^1.7.7","npm_package_devDependencies__electron_forge_maker_squirrel":"^7.5.0","PAT
  H":"/tmp/yarn--1731055307331-0.14247787136507872:<root-directory>/node_modules/.bin:<home-directory>/.config/yarn/link/node_modules/.bin:<home-directory>/.yarn/bin:<home-directory>/.nvm/versions/node/v20.18.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:<home-directory>/.nvm/versions/node/v20.18.0/lib/node_modules/npm/bin/
  node-gyp-bin:<home-directory>/.nvm/versions/node/v20.18.0/bin/node_modules/npm/bin/node-gyp-bin:<home-directory>/.local/share/pnpm:<home-directory>/.nvm/versions/node/v20.18.0/bin:<home-directory>/.deno/bin:<home-directory>/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","NODE":"<home-directory>/.nvm/v
  ersions/node/v20.18.0/bin/node","SESSION_MANAGER":"local/QB-CLT-1105:@/tmp/.ICE-unix/2817,unix/QB-CLT-1105:/tmp/.ICE-unix/2817","INVOCATION_ID":"8e989c4ad1fa43b1b4c40bdbec
  5767e7","npm_package_scripts_package":"electron-forge package","npm_package_name":"automate-develop","GNOME_TERMINAL_SCREEN":"/org/gnome/Terminal/screen/9cb019d4_1a5e_443f
  _80b7_5efbd5680c78","XDG_MENU_PREFIX":"gnome-","XDG_RUNTIME_DIR":"/run/user/1000","DISPLAY":":0","XDG_CURRENT_DESKTOP":"ubuntu:GNOME","LANG":"en_IN","npm_package_devDepend
  encies_eslint":"^9.13.0","XDG_SESSION_DESKTOP":"ubuntu","GNOME_TERMINAL_SERVICE":":1.14634","XMODIFIERS":"@im=ibus","XAUTHORITY":"/run/user/1000/gdm/Xauthority","LS_COLORS
  ":"rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=0
  1;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31
  :*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=
  01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;3
  1:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;
  35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01
  ;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35
  :*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.mi
  di=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:","npm_lifecycle_script":"electron-forge
  start","npm_package_scripts_tsc":"tsc --noEmit","npm_package_scripts_publish":"electron-forge
  publish","npm_package_main":".webpack/main","SSH_AUTH_SOCK":"/run/user/1000/keyring/ssh","npm_package_dependencies_node_pty":"^1.0.0","npm_config_version_git_message":"v%s
  ","SHELL":"/usr/bin/zsh","npm_lifecycle_event":"start","npm_package_version":"2.6.0","QT_ACCESSIBILITY":"1","GDMSESSION":"ubuntu","npm_config_argv":"{\"remain\":[],\"cooke
  d\":[\"run\",\"start\"],\"original\":[\"start\"]}","npm_package_devDependencies_tsconfig_paths_webpack_plugin":"^4.1.0","npm_config_version_git_tag":"true","npm_config_ver
  sion_git_sign":"","GPG_AGENT_INFO":"/run/user/1000/gnupg/S.gpg-agent:0:1","npm_package_license":"MIT","npm_package_devDependencies_fork_ts_checker_webpack_plugin":"^9.0.2"
  ,"npm_package_devDependencies__electron_forge_cli":"^7.5.0","npm_package_scripts_make":"electron-forge make","npm_config_strict_ssl":"true","QT_IM_MODULE":"ibus","npm_pack
  age_devDependencies_style_loader":"^4.0.0","npm_package_devDependencies__electron_forge_plugin_webpack":"^7.5.0","npm_package_scripts_format":"prettier --write
  .","PWD":"<home-directory>","npm_execpath":"<home-directory>/.nvm/versions/node/v20.18.0/lib/node_modules/yarn/bin/yarn.js","npm_package_devDe
  pendencies__electron_fuses":"^1.8.0","XDG_CONFIG_DIRS":"/etc/xdg/xdg-ubuntu:/etc/xdg","XDG_DATA_DIRS":"/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/deskt
  op","NVM_CD_FLAGS":"-q","npm_package_devDependencies_electron":"33","npm_package_devDependencies_dotenv_webpack":"^8.0.1","npm_package_devDependencies_css_loader":"^7.1.2"
  ,"npm_config_save_prefix":"^","npm_config_ignore_optional":"","VTE_VERSION":"6003","PNPM_HOME":"<home-directory>/.local/share/pnpm","INIT_CWD":"<home-directory>/WEBPACK_SERVE":"true"},"shell":false}
  gyp sill find Python execFile result: err = null
  gyp sill find Python execFile result: stdout = "/usr/bin/python3"
  gyp sill find Python execFile result: stderr = ""
  gyp verb find Python - executable path is "/usr/bin/python3"
  gyp verb find Python - executing "/usr/bin/python3" to get version
  gyp sill find Python execFile: exec = "/usr/bin/python3"
  gyp sill find Python execFile: args = ["-c","import sys; print(\"%s.%s.%s\" % sys.version_info[:3]);"]
  gyp sill find Python execFile: opts = {"env":{"npm_package_devDependencies_ts_node":"^10.9.2","npm_package_devDependencies__types_node":"^22.9.0","LANGUAGE":"en_IN:en","US
  ER":<user>,"npm_config_version_commit_hooks":"true","npm_config_user_agent":"yarn/1.22.22 npm/? node/v20.18.0 linux
  x64","npm_config_bin_links":"true","SSH_AGENT_PID":"2779","XDG_SESSION_TYPE":"x11","npm_node_execpath":"<home-directory>/.nvm/versions/node/v20.18.0/bin/node","npm_config_init
  _version":"1.0.0","SHLVL":"1","npm_package_devDependencies_eslint_import_resolver_typescript":"^3.6.1","npm_package_devDependencies__electron_forge_plugin_fuses":"^7.5.0",
  "HOME":"<home-directory>","OLDPWD":"<home-directory>/","LESS":"-R","npm_package_devDependencies__typescript_eslint_parser":"^8.12.2","DESKTOP_SESSION":"ubuntu","NVM_BIN":"<home-directory>/.nvm/versions/node/v20.18.0/bin","ZSH":"<home-directory>/.oh-my-zsh","LSCOLORS":"Gxfxcxdxbxegedabagacad","NVM_INC":"<home-directory>/.nvm/versions/node/v20.18.0/include
  /node","npm_package_engines_node":">=20.0.0","npm_package_devDependencies__electron_forge_plugin_auto_unpack_natives":"^7.5.0","npm_config_init_license":"MIT","GTK_MODULES
  ":"gail:atk-bridge","GNOME_SHELL_SESSION_MODE":"ubuntu","FPATH":"<home-directory>/.oh-my-zsh/plugins/git:<home-directory>/.oh-my-zsh/functions:<home-directory>/.oh-my-zsh/completions:
  <home-directory>/.oh-my-zsh/cache/completions:<home-directory>/.zsh/completions:/usr/local/share/zsh/site-functions:/usr/share/zsh/vendor-functions:/usr/share/zsh/vendor-completio
  ns:/usr/share/zsh/functions/Calendar:/usr/share/zsh/functions/Chpwd:/usr/share/zsh/functions/Completion:/usr/share/zsh/functions/Completion/AIX:/usr/share/zsh/functions/Co
  mpletion/BSD:/usr/share/zsh/functions/Completion/Base:/usr/share/zsh/functions/Completion/Cygwin:/usr/share/zsh/functions/Completion/Darwin:/usr/share/zsh/functions/Comple
  tion/Debian:/usr/share/zsh/functions/Completion/Linux:/usr/share/zsh/functions/Completion/Mandriva:/usr/share/zsh/functions/Completion/Redhat:/usr/share/zsh/functions/Comp
  letion/Solaris:/usr/share/zsh/functions/Completion/Unix:/usr/share/zsh/functions/Completion/X:/usr/share/zsh/functions/Completion/Zsh:/usr/share/zsh/functions/Completion/o
  penSUSE:/usr/share/zsh/functions/Exceptions:/usr/share/zsh/functions/MIME:/usr/share/zsh/functions/Math:/usr/share/zsh/functions/Misc:/usr/share/zsh/functions/Newuser:/usr
  /share/zsh/functions/Prompts:/usr/share/zsh/functions/TCP:/usr/share/zsh/functions/VCS_Info:/usr/share/zsh/functions/VCS_Info/Backends:/usr/share/zsh/functions/Zftp:/usr/s
  hare/zsh/functions/Zle","PAGER":"less","YARN_WRAP_OUTPUT":"false","npm_package_devDependencies__types_dotenv_webpack":"^7.0.8","npm_package_devDependencies__types_axios":"
  ^0.14.4","npm_config_version_tag_prefix":"v","MANAGERPID":"2603","npm_package_dependencies_webpack":"^5.96.1","npm_package_devDependencies_node_loader":"^2.0.0","npm_packa
  ge_devDependencies__vercel_webpack_asset_relocator_loader":"1.7.3","DBUS_SESSION_BUS_ADDRESS":"unix:path=/run/user/1000/bus","npm_package_dependencies_fix_path":"^4.0.0","
  npm_package_dependencies_electron_dl":"^4.0.0","npm_package_dependencies_copy_webpack_plugin":"^12.0.2","COLORTERM":"truecolor","npm_package_description":"## Getting
  started","npm_package_dependencies_electron_squirrel_startup":"^1.0.0","npm_package_devDependencies_typescript":"^5.6.3","NVM_DIR":"<home-directory>/.nvm","npm_package_readmeF
  ilename":"README.md","IM_CONFIG_PHASE":"1","MANDATORY_PATH":"/usr/share/gconf/ubuntu.mandatory.path","npm_package_devDependencies_ts_loader":"^9.5.1","npm_package_devDepen
  dencies_prettier":"^3.3.2","npm_package_devDependencies__electron_forge_maker_rpm":"^7.5.0","LOGNAME":<user>,"npm_package_devDependencies_eslint_plugin_import":"^2.31.0"
  ,"_":"<home-directory>/.nvm/versions/node/v20.18.0/bin/yarn","JOURNAL_STREAM":"8:61503","DEFAULTS_PATH":"/usr/share/gconf/ubuntu.default.path","XDG_SESSION_CLASS":"user","npm_
  package_devDependencies__typescript_eslint_eslint_plugin":"^8.12.2","npm_package_devDependencies__electron_forge_maker_deb":"^7.5.0","npm_package_scripts_lint":"eslint
  --ext .ts,.tsx .","npm_config_registry":"https://registry.yarnpkg.com","USERNAME":<user>,"TERM":"dumb","npm_package_dependencies_linux_os_info":"2.0.0","npm_package_devD
  ependencies__electron_forge_maker_zip":"^7.5.0","GNOME_DESKTOP_SESSION_ID":"this-is-deprecated","npm_package_scripts_start":"electron-forge
  start","npm_config_ignore_scripts":"","WINDOWPATH":"2","npm_package_dependencies_axios":"^1.7.7","npm_package_devDependencies__electron_forge_maker_squirrel":"^7.5.0","PAT
  H":"/tmp/yarn--1731055307331-0.14247787136507872:<root-directory>/node_modules/.bin:<home-directory>/.config/yarn/link/node_modules/.bin:<home-directory>/.yarn/bin:<home-directory>/.nvm/versions/node/v20.18.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:<home-directory>/.nvm/versions/node/v20.18.0/lib/node_modules/npm/bin/
  node-gyp-bin:<home-directory>/.nvm/versions/node/v20.18.0/bin/node_modules/npm/bin/node-gyp-bin:<home-directory>/.local/share/pnpm:<home-directory>/.nvm/versions/node/v20.18.0/bin:<home-directory>/.deno/bin:<home-directory>/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin","NODE":"<home-directory>/.nvm/v
  ersions/node/v20.18.0/bin/node","SESSION_MANAGER":"local/QB-CLT-1105:@/tmp/.ICE-unix/2817,unix/QB-CLT-1105:/tmp/.ICE-unix/2817","INVOCATION_ID":"8e989c4ad1fa43b1b4c40bdbec
  5767e7","npm_package_scripts_package":"electron-forge package","npm_package_name":"automate-develop","GNOME_TERMINAL_SCREEN":"/org/gnome/Terminal/screen/9cb019d4_1a5e_443f
  _80b7_5efbd5680c78","XDG_MENU_PREFIX":"gnome-","XDG_RUNTIME_DIR":"/run/user/1000","DISPLAY":":0","XDG_CURRENT_DESKTOP":"ubuntu:GNOME","LANG":"en_IN","npm_package_devDepend
  encies_eslint":"^9.13.0","XDG_SESSION_DESKTOP":"ubuntu","GNOME_TERMINAL_SERVICE":":1.14634","XMODIFIERS":"@im=ibus","XAUTHORITY":"/run/user/1000/gdm/Xauthority","LS_COLORS
  ":"rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=0
  1;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31
  :*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=
  01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;3
  1:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;
  35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01
  ;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35
  :*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.mi
  di=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:","npm_lifecycle_script":"electron-forge
  start","npm_package_scripts_tsc":"tsc --noEmit","npm_package_scripts_publish":"electron-forge
  publish","npm_package_main":".webpack/main","SSH_AUTH_SOCK":"/run/user/1000/keyring/ssh","npm_package_dependencies_node_pty":"^1.0.0","npm_config_version_git_message":"v%s
  ","SHELL":"/usr/bin/zsh","npm_lifecycle_event":"start","npm_package_version":"2.6.0","QT_ACCESSIBILITY":"1","GDMSESSION":"ubuntu","npm_config_argv":"{\"remain\":[],\"cooke
  d\":[\"run\",\"start\"],\"original\":[\"start\"]}","npm_package_devDependencies_tsconfig_paths_webpack_plugin":"^4.1.0","npm_config_version_git_tag":"true","npm_config_ver
  sion_git_sign":"","GPG_AGENT_INFO":"/run/user/1000/gnupg/S.gpg-agent:0:1","npm_package_license":"MIT","npm_package_devDependencies_fork_ts_checker_webpack_plugin":"^9.0.2"
  ,"npm_package_devDependencies__electron_forge_cli":"^7.5.0","npm_package_scripts_make":"electron-forge make","npm_config_strict_ssl":"true","QT_IM_MODULE":"ibus","npm_pack
  age_devDependencies_style_loader":"^4.0.0","npm_package_devDependencies__electron_forge_plugin_webpack":"^7.5.0","npm_package_scripts_format":"prettier --write
  .","PWD":"<home-directory>","npm_execpath":"<home-directory>/.nvm/versions/node/v20.18.0/lib/node_modules/yarn/bin/yarn.js","npm_package_devDe
  pendencies__electron_fuses":"^1.8.0","XDG_CONFIG_DIRS":"/etc/xdg/xdg-ubuntu:/etc/xdg","XDG_DATA_DIRS":"/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/deskt
  op","NVM_CD_FLAGS":"-q","npm_package_devDependencies_electron":"33","npm_package_devDependencies_dotenv_webpack":"^8.0.1","npm_package_devDependencies_css_loader":"^7.1.2"
  ,"npm_config_save_prefix":"^","npm_config_ignore_optional":"","VTE_VERSION":"6003","PNPM_HOME":"<home-directory>/.local/share/pnpm","INIT_CWD":"<home-directory>","WEBPACK_SERVE":"true"},"shell":false}
  gyp sill find Python execFile result: err = null
  gyp sill find Python execFile result: stdout = "3.8.10\n"
  gyp sill find Python execFile result: stderr = ""
  gyp verb find Python - version is "3.8.10"
  gyp info find Python using Python version 3.8.10 found at "/usr/bin/python3"
  gyp verb get node dir compiling against --target node version: 33.2.0
  gyp verb download using dist-url https://www.electronjs.org/headers
  gyp verb install input version string "33.2.0"
  gyp verb install installing version: 33.2.0
  gyp verb install --ensure was passed, so won't reinstall if already installed
  gyp verb install version not already installed, continuing with install 33.2.0
  gyp verb ensuring devDir is created <home-directory>/.electron-gyp/33.2.0
  gyp verb created devDir <home-directory>/.electron-gyp/33.2.0
  gyp http GET https://www.electronjs.org/headers/v33.2.0/node-v33.2.0-headers.tar.gz
  gyp http 200 https://artifacts.electronjs.org/headers/v33.2.0/node-v33.2.0-headers.tar.gz?force_headers_dist=1
  gyp sill ignoring from tarball node_headers/
  gyp sill ignoring from tarball node_headers/include/
  gyp sill ignoring from tarball node_headers/include/node/
  gyp verb extracted file from tarball node_headers/include/node/common.gypi
  gyp verb extracted file from tarball node_headers/include/node/config.gypi
  gyp sill ignoring from tarball node_headers/include/node/cppgc/
  gyp verb extracted file from tarball node_headers/include/node/cppgc/allocation.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/common.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/cross-thread-persistent.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/custom-space.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/default-platform.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/ephemeron-pair.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/explicit-management.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/garbage-collected.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/heap-consistency.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/heap-handle.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/heap-state.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/heap-statistics.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/heap.h
  gyp sill ignoring from tarball node_headers/include/node/cppgc/internal/
  gyp verb extracted file from tarball node_headers/include/node/cppgc/internal/api-constants.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/internal/atomic-entry-flag.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/internal/base-page-handle.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/internal/caged-heap-local-data.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/internal/caged-heap.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/internal/compiler-specific.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/internal/finalizer-trait.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/internal/gc-info.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/internal/logging.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/internal/member-storage.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/internal/name-trait.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/internal/persistent-node.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/internal/pointer-policies.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/internal/write-barrier.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/liveness-broker.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/macros.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/member.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/name-provider.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/object-size-trait.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/persistent.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/platform.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/prefinalizer.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/process-heap-statistics.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/sentinel-pointer.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/source-location.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/testing.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/trace-trait.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/type-traits.h
  gyp verb extracted file from tarball node_headers/include/node/cppgc/visitor.h
  gyp verb extracted file from tarball node_headers/include/node/js_native_api.h
  gyp verb extracted file from tarball node_headers/include/node/js_native_api_types.h
  gyp sill ignoring from tarball node_headers/include/node/libplatform/
  gyp verb extracted file from tarball node_headers/include/node/libplatform/libplatform-export.h
  gyp verb extracted file from tarball node_headers/include/node/libplatform/libplatform.h
  gyp verb extracted file from tarball node_headers/include/node/libplatform/v8-tracing.h
  gyp verb extracted file from tarball node_headers/include/node/node.h
  gyp verb extracted file from tarball node_headers/include/node/node_api.h
  gyp verb extracted file from tarball node_headers/include/node/node_api_types.h
  gyp verb extracted file from tarball node_headers/include/node/node_buffer.h
  gyp verb extracted file from tarball node_headers/include/node/node_object_wrap.h
  gyp verb extracted file from tarball node_headers/include/node/node_version.h
  gyp sill ignoring from tarball node_headers/include/node/uv/
  gyp verb extracted file from tarball node_headers/include/node/uv/aix.h
  gyp verb extracted file from tarball node_headers/include/node/uv/bsd.h
  gyp verb extracted file from tarball node_headers/include/node/uv/darwin.h
  gyp verb extracted file from tarball node_headers/include/node/uv/errno.h
  gyp verb extracted file from tarball node_headers/include/node/uv/linux.h
  gyp verb extracted file from tarball node_headers/include/node/uv/os390.h
  gyp verb extracted file from tarball node_headers/include/node/uv/posix.h
  gyp verb extracted file from tarball node_headers/include/node/uv/sunos.h
  gyp verb extracted file from tarball node_headers/include/node/uv/threadpool.h
  gyp verb extracted file from tarball node_headers/include/node/uv/tree.h
  gyp verb extracted file from tarball node_headers/include/node/uv/unix.h
  gyp verb extracted file from tarball node_headers/include/node/uv/version.h
  gyp verb extracted file from tarball node_headers/include/node/uv/win.h
  gyp verb extracted file from tarball node_headers/include/node/uv.h
  gyp verb extracted file from tarball node_headers/include/node/v8-array-buffer.h
  gyp verb extracted file from tarball node_headers/include/node/v8-callbacks.h
  gyp verb extracted file from tarball node_headers/include/node/v8-container.h
  gyp verb extracted file from tarball node_headers/include/node/v8-context.h
  gyp verb extracted file from tarball node_headers/include/node/v8-cppgc.h
  gyp verb extracted file from tarball node_headers/include/node/v8-data.h
  gyp verb extracted file from tarball node_headers/include/node/v8-date.h
  gyp verb extracted file from tarball node_headers/include/node/v8-debug.h
  gyp verb extracted file from tarball node_headers/include/node/v8-embedder-heap.h
  gyp verb extracted file from tarball node_headers/include/node/v8-embedder-state-scope.h
  gyp verb extracted file from tarball node_headers/include/node/v8-exception.h
  gyp verb extracted file from tarball node_headers/include/node/v8-extension.h
  gyp verb extracted file from tarball node_headers/include/node/v8-external.h
  gyp verb extracted file from tarball node_headers/include/node/v8-forward.h
  gyp verb extracted file from tarball node_headers/include/node/v8-function-callback.h
  gyp verb extracted file from tarball node_headers/include/node/v8-function.h
  gyp verb extracted file from tarball node_headers/include/node/v8-handle-base.h
  gyp verb extracted file from tarball node_headers/include/node/v8-initialization.h
  gyp verb extracted file from tarball node_headers/include/node/v8-internal.h
  gyp verb extracted file from tarball node_headers/include/node/v8-isolate.h
  gyp verb extracted file from tarball node_headers/include/node/v8-json.h
  gyp verb extracted file from tarball node_headers/include/node/v8-local-handle.h
  gyp verb extracted file from tarball node_headers/include/node/v8-locker.h
  gyp verb extracted file from tarball node_headers/include/node/v8-maybe.h
  gyp verb extracted file from tarball node_headers/include/node/v8-memory-span.h
  gyp verb extracted file from tarball node_headers/include/node/v8-message.h
  gyp verb extracted file from tarball node_headers/include/node/v8-microtask-queue.h
  gyp verb extracted file from tarball node_headers/include/node/v8-microtask.h
  gyp verb extracted file from tarball node_headers/include/node/v8-object.h
  gyp verb extracted file from tarball node_headers/include/node/v8-persistent-handle.h
  gyp verb extracted file from tarball node_headers/include/node/v8-platform.h
  gyp verb extracted file from tarball node_headers/include/node/v8-primitive-object.h
  gyp verb extracted file from tarball node_headers/include/node/v8-primitive.h
  gyp verb extracted file from tarball node_headers/include/node/v8-profiler.h
  gyp verb extracted file from tarball node_headers/include/node/v8-promise.h
  gyp verb extracted file from tarball node_headers/include/node/v8-proxy.h
  gyp verb extracted file from tarball node_headers/include/node/v8-regexp.h
  gyp verb extracted file from tarball node_headers/include/node/v8-sandbox.h
  gyp verb extracted file from tarball node_headers/include/node/v8-script.h
  gyp verb extracted file from tarball node_headers/include/node/v8-snapshot.h
  gyp verb extracted file from tarball node_headers/include/node/v8-source-location.h
  gyp verb extracted file from tarball node_headers/include/node/v8-statistics.h
  gyp verb extracted file from tarball node_headers/include/node/v8-template.h
  gyp verb extracted file from tarball node_headers/include/node/v8-traced-handle.h
  gyp verb extracted file from tarball node_headers/include/node/v8-typed-array.h
  gyp verb extracted file from tarball node_headers/include/node/v8-unwinder.h
  gyp verb extracted file from tarball node_headers/include/node/v8-value-serializer.h
  gyp verb extracted file from tarball node_headers/include/node/v8-value.h
  gyp verb extracted file from tarball node_headers/include/node/v8-version.h
  gyp verb extracted file from tarball node_headers/include/node/v8-wasm.h
  gyp verb extracted file from tarball node_headers/include/node/v8-weak-callback-info.h
  gyp verb extracted file from tarball node_headers/include/node/v8.h
  gyp verb extracted file from tarball node_headers/include/node/v8config.h
  gyp verb extracted file from tarball node_headers/include/node/zconf.h
  gyp verb extracted file from tarball node_headers/include/node/zlib.h
  gyp verb content checksum node-v33.2.0-headers.tar.gz 587fd35d1a40035484c0ef3ab8c6c3bb1517e349382a30e3511ec09acc02987d
  gyp verb tarball done parsing tarball
  gyp verb check download content checksum, need to download `SHASUMS256.txt`...
  gyp verb checksum url https://www.electronjs.org/headers/v33.2.0/SHASUMS256.txt
  gyp http GET https://www.electronjs.org/headers/v33.2.0/SHASUMS256.txt
  gyp http 200 https://artifacts.electronjs.org/headers/v33.2.0/SHASUMS256.txt?force_headers_dist=1
  gyp verb checksum data {"node-v33.2.0.tar.gz":"587fd35d1a40035484c0ef3ab8c6c3bb1517e349382a30e3511ec09acc02987d","node-v33.2.0-headers.tar.gz":"587fd35d1a40035484c0ef3ab8c
  6c3bb1517e349382a30e3511ec09acc02987d","iojs-v33.2.0.tar.gz":"587fd35d1a40035484c0ef3ab8c6c3bb1517e349382a30e3511ec09acc02987d","iojs-v33.2.0-headers.tar.gz":"587fd35d1a40
  035484c0ef3ab8c6c3bb1517e349382a30e3511ec09acc02987d","node.lib":"8634834c017b6fad52e4c10862c55d1c667a67e282eb8b300334094e45d3c5c7","x64/node.lib":"7f6621834235e1fe9f19126
  85be2339ef64342bc8a5b2154efc6d23d50c10a4b","win-x86/iojs.lib":"8634834c017b6fad52e4c10862c55d1c667a67e282eb8b300334094e45d3c5c7","win-x64/iojs.lib":"7f6621834235e1fe9f1912
  685be2339ef64342bc8a5b2154efc6d23d50c10a4b","win-x86/node.lib":"8634834c017b6fad52e4c10862c55d1c667a67e282eb8b300334094e45d3c5c7","win-x64/node.lib":"7f6621834235e1fe9f191
  2685be2339ef64342bc8a5b2154efc6d23d50c10a4b","arm64/node.lib":"904c4cafe2ecd74eab200dc858e52064c506abeec5e2ced1dff27409abd67fc8","win-arm64/iojs.lib":"904c4cafe2ecd74eab20
  0dc858e52064c506abeec5e2ced1dff27409abd67fc8","win-arm64/node.lib":"904c4cafe2ecd74eab200dc858e52064c506abeec5e2ced1dff27409abd67fc8"}
  gyp verb download contents checksum {"node-v33.2.0-headers.tar.gz":"587fd35d1a40035484c0ef3ab8c6c3bb1517e349382a30e3511ec09acc02987d"}
  gyp verb validating download checksum for node-v33.2.0-headers.tar.gz (587fd35d1a40035484c0ef3ab8c6c3bb1517e349382a30e3511ec09acc02987d ==
  587fd35d1a40035484c0ef3ab8c6c3bb1517e349382a30e3511ec09acc02987d)
  gyp verb get node dir target node version installed: 33.2.0
  gyp verb build dir attempting to create "build" dir: <root-directory>/node_modules/node-pty/build
  gyp verb build dir "build" dir needed to be created? Yes
  gyp verb build/config.gypi creating config file
  gyp sill build/config.gypi {
  gyp sill build/config.gypi target_defaults: {
  gyp sill build/config.gypi cflags: [],
  gyp sill build/config.gypi default_configuration: 'Release',
  gyp sill build/config.gypi defines: [],
  gyp sill build/config.gypi include_dirs: [],
  gyp sill build/config.gypi libraries: []
  gyp sill build/config.gypi },
  gyp sill build/config.gypi variables: {
  gyp sill build/config.gypi arm_fpu: 'neon',
  gyp sill build/config.gypi asan: 0,
  gyp sill build/config.gypi build_v8_with_gn: 'false',
  gyp sill build/config.gypi built_with_electron: 1,
  gyp sill build/config.gypi coverage: 'false',
  gyp sill build/config.gypi dcheck_always_on: 0,
  gyp sill build/config.gypi debug_nghttp2: 'false',
  gyp sill build/config.gypi debug_node: 'false',
  gyp sill build/config.gypi enable_lto: 'false',
  gyp sill build/config.gypi enable_pgo_generate: 'false',
  gyp sill build/config.gypi enable_pgo_use: 'false',
  gyp sill build/config.gypi error_on_warn: 'false',
  gyp sill build/config.gypi force_dynamic_crt: 0,
  gyp sill build/config.gypi host_arch: 'x64',
  gyp sill build/config.gypi icu_data_in: '..\\..\\deps\\icu-tmp\\icudt75l.dat',
  gyp sill build/config.gypi icu_endianness: 'l',
  gyp sill build/config.gypi icu_gyp_path: 'tools/icu/icu-generic.gyp',
  gyp sill build/config.gypi icu_path: 'deps/icu-small',
  gyp sill build/config.gypi icu_small: 'false',
  gyp sill build/config.gypi icu_ver_major: '75',
  gyp sill build/config.gypi is_debug: 0,
  gyp sill build/config.gypi libdir: 'lib',
  gyp sill build/config.gypi llvm_version: '0.0',
  gyp sill build/config.gypi napi_build_version: '9',
  gyp sill build/config.gypi node_builtin_shareable_builtins: [
  gyp sill build/config.gypi 'deps/cjs-module-lexer/lexer.js',
  gyp sill build/config.gypi 'deps/cjs-module-lexer/dist/lexer.js',
  gyp sill build/config.gypi 'deps/undici/undici.js'
  gyp sill build/config.gypi ],
  gyp sill build/config.gypi node_byteorder: 'little',
  gyp sill build/config.gypi node_debug_lib: 'false',
  gyp sill build/config.gypi node_enable_d8: 'false',
  gyp sill build/config.gypi node_enable_v8_vtunejit: 'false',
  gyp sill build/config.gypi node_fipsinstall: 'false',
  gyp sill build/config.gypi node_install_corepack: 'true',
  gyp sill build/config.gypi node_install_npm: 'true',
  gyp sill build/config.gypi node_library_files: [
  gyp sill build/config.gypi 'lib/_http_agent.js',
  gyp sill build/config.gypi 'lib/_http_client.js',
  gyp sill build/config.gypi 'lib/_http_common.js',
  gyp sill build/config.gypi 'lib/_http_incoming.js',
  gyp sill build/config.gypi 'lib/_http_outgoing.js',
  gyp sill build/config.gypi 'lib/_http_server.js',
  gyp sill build/config.gypi 'lib/_stream_duplex.js',
  gyp sill build/config.gypi 'lib/_stream_passthrough.js',
  gyp sill build/config.gypi 'lib/_stream_readable.js',
  gyp sill build/config.gypi 'lib/_stream_transform.js',
  gyp sill build/config.gypi 'lib/_stream_wrap.js',
  gyp sill build/config.gypi 'lib/_stream_writable.js',
  gyp sill build/config.gypi 'lib/_tls_common.js',
  gyp sill build/config.gypi 'lib/_tls_wrap.js',
  gyp sill build/config.gypi 'lib/assert.js',
  gyp sill build/config.gypi 'lib/assert/strict.js',
  gyp sill build/config.gypi 'lib/async_hooks.js',
  gyp sill build/config.gypi 'lib/buffer.js',
  gyp sill build/config.gypi 'lib/child_process.js',
  gyp sill build/config.gypi 'lib/cluster.js',
  gyp sill build/config.gypi 'lib/console.js',
  gyp sill build/config.gypi 'lib/constants.js',
  gyp sill build/config.gypi 'lib/crypto.js',
  gyp sill build/config.gypi 'lib/dgram.js',
  gyp sill build/config.gypi 'lib/diagnostics_channel.js',
  gyp sill build/config.gypi 'lib/dns.js',
  gyp sill build/config.gypi 'lib/dns/promises.js',
  gyp sill build/config.gypi 'lib/domain.js',
  gyp sill build/config.gypi 'lib/events.js',
  gyp sill build/config.gypi 'lib/fs.js',
  gyp sill build/config.gypi 'lib/fs/promises.js',
  gyp sill build/config.gypi 'lib/http.js',
  gyp sill build/config.gypi 'lib/http2.js',
  gyp sill build/config.gypi 'lib/https.js',
  gyp sill build/config.gypi 'lib/inspector.js',
  gyp sill build/config.gypi 'lib/inspector/promises.js',
  gyp sill build/config.gypi 'lib/internal/abort_controller.js',
  gyp sill build/config.gypi 'lib/internal/assert.js',
  gyp sill build/config.gypi 'lib/internal/assert/assertion_error.js',
  gyp sill build/config.gypi 'lib/internal/assert/calltracker.js',
  gyp sill build/config.gypi 'lib/internal/assert/utils.js',
  gyp sill build/config.gypi 'lib/internal/async_hooks.js',
  gyp sill build/config.gypi 'lib/internal/blob.js',
  gyp sill build/config.gypi 'lib/internal/blocklist.js',
  gyp sill build/config.gypi 'lib/internal/bootstrap/node.js',
  gyp sill build/config.gypi 'lib/internal/bootstrap/realm.js',
  gyp sill build/config.gypi 'lib/internal/bootstrap/shadow_realm.js',
  gyp sill build/config.gypi 'lib/internal/bootstrap/switches/does_not_own_process_state.js',
  gyp sill build/config.gypi 'lib/internal/bootstrap/switches/does_own_process_state.js',
  gyp sill build/config.gypi 'lib/internal/bootstrap/switches/is_main_thread.js',
  gyp sill build/config.gypi 'lib/internal/bootstrap/switches/is_not_main_thread.js',
  gyp sill build/config.gypi 'lib/internal/bootstrap/web/exposed-wildcard.js',
  gyp sill build/config.gypi 'lib/internal/bootstrap/web/exposed-window-or-worker.js',
  gyp sill build/config.gypi 'lib/internal/buffer.js',
  gyp sill build/config.gypi 'lib/internal/child_process.js',
  gyp sill build/config.gypi 'lib/internal/child_process/serialization.js',
  gyp sill build/config.gypi 'lib/internal/cli_table.js',
  gyp sill build/config.gypi 'lib/internal/cluster/child.js',
  gyp sill build/config.gypi 'lib/internal/cluster/primary.js',
  gyp sill build/config.gypi 'lib/internal/cluster/round_robin_handle.js',
  gyp sill build/config.gypi 'lib/internal/cluster/shared_handle.js',
  gyp sill build/config.gypi 'lib/internal/cluster/utils.js',
  gyp sill build/config.gypi 'lib/internal/cluster/worker.js',
  gyp sill build/config.gypi 'lib/internal/console/constructor.js',
  gyp sill build/config.gypi 'lib/internal/console/global.js',
  gyp sill build/config.gypi 'lib/internal/constants.js',
  gyp sill build/config.gypi 'lib/internal/crypto/aes.js',
  gyp sill build/config.gypi 'lib/internal/crypto/certificate.js',
  gyp sill build/config.gypi 'lib/internal/crypto/cfrg.js',
  gyp sill build/config.gypi 'lib/internal/crypto/cipher.js',
  gyp sill build/config.gypi 'lib/internal/crypto/diffiehellman.js',
  gyp sill build/config.gypi 'lib/internal/crypto/ec.js',
  gyp sill build/config.gypi 'lib/internal/crypto/hash.js',
  gyp sill build/config.gypi 'lib/internal/crypto/hashnames.js',
  gyp sill build/config.gypi 'lib/internal/crypto/hkdf.js',
  gyp sill build/config.gypi 'lib/internal/crypto/keygen.js',
  gyp sill build/config.gypi 'lib/internal/crypto/keys.js',
  gyp sill build/config.gypi 'lib/internal/crypto/mac.js',
  gyp sill build/config.gypi 'lib/internal/crypto/pbkdf2.js',
  gyp sill build/config.gypi 'lib/internal/crypto/random.js',
  gyp sill build/config.gypi 'lib/internal/crypto/rsa.js',
  gyp sill build/config.gypi 'lib/internal/crypto/scrypt.js',
  gyp sill build/config.gypi 'lib/internal/crypto/sig.js',
  gyp sill build/config.gypi 'lib/internal/crypto/util.js',
  gyp sill build/config.gypi 'lib/internal/crypto/webcrypto.js',
  gyp sill build/config.gypi 'lib/internal/crypto/webidl.js',
  gyp sill build/config.gypi 'lib/internal/crypto/x509.js',
  gyp sill build/config.gypi 'lib/internal/debugger/inspect.js',
  gyp sill build/config.gypi 'lib/internal/debugger/inspect_client.js',
  gyp sill build/config.gypi 'lib/internal/debugger/inspect_repl.js',
  gyp sill build/config.gypi 'lib/internal/dgram.js',
  gyp sill build/config.gypi 'lib/internal/dns/callback_resolver.js',
  gyp sill build/config.gypi 'lib/internal/dns/promises.js',
  gyp sill build/config.gypi 'lib/internal/dns/utils.js',
  gyp sill build/config.gypi 'lib/internal/encoding.js',
  gyp sill build/config.gypi 'lib/internal/error_serdes.js',
  gyp sill build/config.gypi 'lib/internal/errors.js',
  gyp sill build/config.gypi 'lib/internal/event_target.js',
  gyp sill build/config.gypi 'lib/internal/events/abort_listener.js',
  gyp sill build/config.gypi 'lib/internal/events/symbols.js',
  gyp sill build/config.gypi ... 219 more items
  gyp sill build/config.gypi ],
  gyp sill build/config.gypi node_module_version: 130,
  gyp sill build/config.gypi node_no_browser_globals: 'false',
  gyp sill build/config.gypi node_prefix: '\\usr\\local',
  gyp sill build/config.gypi node_release_urlbase: '',
  gyp sill build/config.gypi node_shared: 'false',
  gyp sill build/config.gypi node_shared_ada: 'false',
  gyp sill build/config.gypi node_shared_brotli: 'false',
  gyp sill build/config.gypi node_shared_cares: 'false',
  gyp sill build/config.gypi node_shared_http_parser: 'false',
  gyp sill build/config.gypi node_shared_libuv: 'false',
  gyp sill build/config.gypi node_shared_nghttp2: 'false',
  gyp sill build/config.gypi node_shared_nghttp3: 'false',
  gyp sill build/config.gypi node_shared_ngtcp2: 'false',
  gyp sill build/config.gypi node_shared_openssl: 'false',
  gyp sill build/config.gypi node_shared_simdjson: 'false',
  gyp sill build/config.gypi node_shared_simdutf: 'false',
  gyp sill build/config.gypi node_shared_uvwasi: 'false',
  gyp sill build/config.gypi node_shared_zlib: 'false',
  gyp sill build/config.gypi node_tag: '',
  gyp sill build/config.gypi node_target_type: 'executable',
  gyp sill build/config.gypi node_use_bundled_v8: 'true',
  gyp sill build/config.gypi node_use_node_code_cache: 'false',
  gyp sill build/config.gypi node_use_node_snapshot: 'false',
  gyp sill build/config.gypi node_use_openssl: 'true',
  gyp sill build/config.gypi node_use_v8_platform: 'true',
  gyp sill build/config.gypi node_with_ltcg: 'true',
  gyp sill build/config.gypi node_without_node_options: 'false',
  gyp sill build/config.gypi node_write_snapshot_as_array_literals: 'true',
  gyp sill build/config.gypi openssl_is_fips: 'false',
  gyp sill build/config.gypi openssl_no_asm: 1,
  gyp sill build/config.gypi openssl_quic: 'true',
  gyp sill build/config.gypi ossfuzz: 'false',
  gyp sill build/config.gypi shlib_suffix: 'so.115',
  gyp sill build/config.gypi single_executable_application: 'true',
  gyp sill build/config.gypi target_arch: 'x64',
  gyp sill build/config.gypi ubsan: 0,
  gyp sill build/config.gypi use_prefix_to_find_headers: 'false',
  gyp sill build/config.gypi using_electron_config_gypi: 1,
  gyp sill build/config.gypi v8_enable_31bit_smis_on_64bit_arch: 1,
  gyp sill build/config.gypi v8_enable_extensible_ro_snapshot: 0,
  gyp sill build/config.gypi v8_enable_gdbjit: 0,
  gyp sill build/config.gypi v8_enable_hugepage: 0,
  gyp sill build/config.gypi v8_enable_i18n_support: 1,
  gyp sill build/config.gypi v8_enable_inspector: 1,
  gyp sill build/config.gypi v8_enable_javascript_promise_hooks: 1,
  gyp sill build/config.gypi v8_enable_lite_mode: 0,
  gyp sill build/config.gypi v8_enable_maglev: 0,
  gyp sill build/config.gypi v8_enable_object_print: 1,
  gyp sill build/config.gypi v8_enable_pointer_compression: 1,
  gyp sill build/config.gypi v8_enable_sandbox: 1,
  gyp sill build/config.gypi v8_enable_shared_ro_heap: 0,
  gyp sill build/config.gypi v8_enable_v8_checks: 0,
  gyp sill build/config.gypi v8_enable_webassembly: 1,
  gyp sill build/config.gypi v8_no_strict_aliasing: 1,
  gyp sill build/config.gypi v8_optimized_debug: 1,
  gyp sill build/config.gypi v8_promise_internal_field_count: 1,
  gyp sill build/config.gypi v8_random_seed: 0,
  gyp sill build/config.gypi v8_trace_maps: 0,
  gyp sill build/config.gypi v8_use_siphash: 1,
  gyp sill build/config.gypi want_separate_host_toolset: 1,
  gyp sill build/config.gypi nodedir: '<home-directory>/.electron-gyp/33.2.0',
  gyp sill build/config.gypi python: '/usr/bin/python3',
  gyp sill build/config.gypi standalone_static_library: 1,
  gyp sill build/config.gypi runtime: 'electron',
  gyp sill build/config.gypi target: '33.2.0',
  gyp sill build/config.gypi build_from_source: true,
  gyp sill build/config.gypi version_commit_hooks: 'true',
  gyp sill build/config.gypi user_agent: 'yarn/1.22.22 npm/? node/v20.18.0 linux x64',
  gyp sill build/config.gypi bin_links: 'true',
  gyp sill build/config.gypi init_version: '1.0.0',
  gyp sill build/config.gypi init_license: 'MIT',
  gyp sill build/config.gypi version_tag_prefix: 'v',
  gyp sill build/config.gypi registry: 'https://registry.yarnpkg.com',
  gyp sill build/config.gypi ignore_scripts: '',
  gyp sill build/config.gypi version_git_message: 'v%s',
  gyp sill build/config.gypi version_git_tag: 'true',
  gyp sill build/config.gypi version_git_sign: '',
  gyp sill build/config.gypi strict_ssl: 'true',
  gyp sill build/config.gypi save_prefix: '^',
  gyp sill build/config.gypi ignore_optional: ''
  gyp sill build/config.gypi }
  gyp sill build/config.gypi }
  gyp verb build/config.gypi writing out config file: <root-directory>/node_modules/node-pty/build/config.gypi
  gyp verb config.gypi checking for gypi file: <root-directory>/node_modules/node-pty/config.gypi
  gyp verb common.gypi checking for gypi file: <root-directory>/node_modules/node-pty/common.gypi
  gyp verb gyp gyp format was not specified; forcing "make"
  gyp info spawn /usr/bin/python3
  gyp info spawn args [
  gyp info spawn args '<root-directory>/node_modules/@electron/node-gyp/gyp/gyp_main.py',
  gyp info spawn args 'binding.gyp',
  gyp info spawn args '-f',
  gyp info spawn args 'make',
  gyp info spawn args '-I',
  gyp info spawn args '<root-directory>/node_modules/node-pty/build/config.gypi',
  gyp info spawn args '-I',
  gyp info spawn args '<root-directory>/node_modules/@electron/node-gyp/addon.gypi',
  gyp info spawn args '-I',
  gyp info spawn args '<home-directory>/.electron-gyp/33.2.0/include/node/common.gypi',
  gyp info spawn args '-Dlibrary=shared_library',
  gyp info spawn args '-Dvisibility=default',
  gyp info spawn args '-Dnode_root_dir=<home-directory>/.electron-gyp/33.2.0',
  gyp info spawn args '-Dnode_gyp_dir=<root-directory>/node_modules/@electron/node-gyp',
  gyp info spawn args '-Dnode_lib_file=<home-directory>/.electron-gyp/33.2.0/<(target_arch)/node.lib',
  gyp info spawn args '-Dmodule_root_dir=<root-directory>/node_modules/node-pty',
  gyp info spawn args '-Dnode_engine=v8',
  gyp info spawn args '--depth=.',
  gyp info spawn args '--no-parallel',
  gyp info spawn args '--generator-output',
  gyp info spawn args 'build',
  gyp info spawn args '-Goutput_dir=.'
  gyp info spawn args ]
  gyp verb build type Release
  gyp verb architecture x64
  gyp verb node dev dir <home-directory>/.electron-gyp/33.2.0
  gyp verb python /usr/bin/python3
  gyp verb `which` succeeded for `make` /usr/bin/make
  gyp verb bin symlinks created symlink to "/usr/bin/python3" in "<root-directory>/node_modules/node-pty/build/node_gyp_bins" and added to
  PATH
  gyp info spawn make
  gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ]
  make: Entering directory '<root-directory>/node_modules/node-pty/build'
  g++ -o Release/obj.target/pty/src/unix/pty.o ../src/unix/pty.cc '-DNODE_GYP_MODULE_NAME=pty' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1'
  '-D_GLIBCXX_USE_CXX11_ABI=1' '-DELECTRON_ENSURE_CONFIG_GYPI' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DUSING_ELECTRON_CONFIG_GYPI' '-DV8_COMPRESS_POINTERS'
  '-DV8_COMPRESS_POINTERS_IN_ISOLATE_CAGE' '-DV8_31BIT_SMIS_ON_64BIT_ARCH' '-DV8_ENABLE_SANDBOX' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS'
  '-DOPENSSL_NO_ASM' '-DBUILDING_NODE_EXTENSION' -I<home-directory>/.electron-gyp/33.2.0/include/node -I<home-directory>/.electron-gyp/33.2.0/src
  -I<home-directory>/.electron-gyp/33.2.0/deps/openssl/config -I<home-directory>/.electron-gyp/33.2.0/deps/openssl/openssl/include
  -I<home-directory>/.electron-gyp/33.2.0/deps/uv/include -I<home-directory>/.electron-gyp/33.2.0/deps/zlib -I<home-directory>/.electron-gyp/33.2.0/deps/v8/include -I../../nan  -fPIC
  -pthread -Wall -Wextra -Wno-unused-parameter -Wall -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++20 -MMD -MF
  ./Release/.deps/Release/obj.target/pty/src/unix/pty.o.d.raw   -c
  g++: error: unrecognized command line option ‘-std=gnu++20’; did you mean ‘-std=gnu++2a’?
  make: *** [pty.target.mk:124: Release/obj.target/pty/src/unix/pty.o] Error 1
  make: Leaving directory '<root-directory>/node_modules/node-pty/build'
  Error: `make` failed with exit code: 2
  at ChildProcess.<anonymous> (<root-directory>/node_modules/@electron/node-gyp/lib/build.js:215:23)

An unhandled rejection has occurred inside Forge:
Error: node-gyp failed to rebuild '<root-directory>/node_modules/node-pty'
at ChildProcess.<anonymous> (<root-directory>/node_modules/@electron/rebuild/lib/module-type/node-gyp/node-gyp.js:121:24)
    at ChildProcess.emit (node:events:519:28)
    at ChildProcess._handle.onexit (node:internal/child_process:294:12)
error Command failed with exit code 1.
Tyriar commented 5 days ago

g++: error: unrecognized command line option ‘-std=gnu++20’; did you mean ‘-std=gnu++2a’?

Looks like you're missing something in the C++ toolchain side. Make sure you have the dependencies all set up https://github.com/microsoft/node-pty?tab=readme-ov-file#dependencies

aswathpp97 commented 5 days ago

g++: error: unrecognized command line option ‘-std=gnu++20’; did you mean ‘-std=gnu++2a’?

Looks like you're missing something in the C++ toolchain side. Make sure you have the dependencies all set up https://github.com/microsoft/node-pty?tab=readme-ov-file#dependencies

I ran the commandsudo apt install -y make python build-essential to ensure the necessary dependencies are installed. The error only occurs in Electron versions greater than 32; it compiles fine on lower versions.