Xterm.js項目部署實施全過程


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",
需要將這個包再次安裝一下。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM