Xterm.js項目部署實施全過程
Xterm.js 是微軟出品,絕對沒有次品
一、
前提是准備node-pty
Dependencies
Linux/Ubuntu
sudo apt install -y make python build-essential
The following are also needed:
- Node.JS 10+
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
- 這里非常重要。。。。。
- 需要下載
Windows 10 SDK
- Node.JS 10+
二、
git clone https://github.com/xtermjs/xterm.js cd xterm.js npm install npm run build
第一步和第二部不能顛倒。
如果發生了顛倒怎么辦。
"node-pty": "^0.9.0",
需要將這個包再次安裝一下。

