Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1.22 KB

README.md

File metadata and controls

41 lines (31 loc) · 1.22 KB

electron-term-demo

使用vue+electron+node-pty+xterm.js实现终端

推荐版本nodejs 14.X

需要满足node-pty使用依赖,摘录在最后

启动方式:

首次

npm install
npm run rebuild
npm run serve

之后

npm run serve

Dependencies

Node.JS 12+ or Electron 8+ is required to use node-pty.

Linux (apt)

sudo apt install -y make python build-essential

macOS

Xcode is needed to compile the sources, this can be installed from the App Store.

Windows

npm install requires some tools to be present in the system like Python and C++ compiler. Windows users can easily install them by running the following command in PowerShell as administrator. For more information see https://github.com/felixrieseberg/windows-build-tools:

npm install --global --production windows-build-tools

The following are also needed:

  • Windows SDK - only the "Desktop C++ Apps" components are needed to be installed