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",
需要将这个包再次安装一下。