# 使用 Homebrew, MacPorts, Nix, pacman 安装 typescript-language-server

查看 typescript-language-server 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:typescript-language-server
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install typescript-language-server
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install typescript-language-server
```

  证据: MacPorts ports tree: devel/typescript-language-server/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#typescript-language-server
```

  证据: nixpkgs package indexes: pkgs/by-name/ty/typescript-language-server/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S typescript-language-server
```

  证据: Arch Linux sync databases: typescript-language-server from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## 软件包事实

- **软件包键:** brew:typescript-language-server
- **软件包管理器:** Homebrew
- **版本:** 5.3.0
- **来源摘要:** Language Server Protocol implementation for TypeScript wrapping tsserver
- **主页:** <https://github.com/typescript-language-server/typescript-language-server>
- **最后更新:** 2026-06-22T14:06:31-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- typescript-language-server (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 5.3.0
## 项目历史与用法

TypeScript Language Server is a community-maintained Language Server Protocol wrapper around TypeScript's `tsserver` and VS Code's TypeScript language-feature code. It exists so editors outside VS Code can use standardized LSP plumbing for TypeScript and JavaScript intelligence.

### 项目历史

The official README explains the gap that produced the project: TypeScript ships `tsserver`, but VS Code's bundled TypeScript language features do not communicate with editors through LSP. TypeScript Language Server provides a thin LSP interface on top of that code path for other editors.

The project was originally based on concepts from prabirshrestha/typescript-language-server, was maintained by TypeFox, and is now maintained by community contributors. The README explicitly notes that it is not directly associated with Microsoft and is not used by VS Code.

Recent README material also points at Microsoft's native Go TypeScript work, saying TypeScript 7 is expected to include an LSP implementation and may eventually supersede this project.

### 采用历史

Adoption tracks the spread of LSP-capable editors such as Neovim, Emacs, Sublime Text, Helix, and other editor clients that want TypeScript completion, diagnostics, organize-imports, code actions, inlay hints, and refactors without reimplementing `tsserver` integration.

Package-manager adoption reflects that editor tooling niche: users install both `typescript-language-server` and `typescript`, then launch the server over stdio from their editor's LSP client.

### 使用方式

The basic package workflow is `npm install -g typescript-language-server typescript` or installation through a system package manager, followed by running `typescript-language-server --stdio` from an editor LSP client. The server exposes TypeScript-backed code actions, workspace commands, code lenses, inlay hints, formatting configuration requests, and tsserver passthrough commands.

### 为什么软件包爱好者会关心

This package is a classic package-nerd bridge: it takes a vendor-specific language service and makes it consumable through the editor-neutral LSP ecosystem. It matters most to people maintaining editor setups, language-server bundles, and reproducible dev environments outside VS Code.

### 时间线

- 2010s: TypeScript's `tsserver` became the core service behind TypeScript editor intelligence.
- 2010s: Earlier LSP wrapper ideas from prabirshrestha/typescript-language-server informed the current project.
- 2020s: The community-maintained server became a common package-manager dependency for non-VS Code TypeScript LSP setups.
- 2025: v5.0.0 required Node 20 and continued tracking TypeScript/tsserver behavior.
- 2026: The README noted Microsoft's native Go TypeScript work as a likely future successor.

### Related projects

- Related projects include TypeScript, `tsserver`, VS Code TypeScript Language Features, the Language Server Protocol, prabirshrestha/typescript-language-server, TypeFox tooling, and editor LSP clients.

### 来源

- <https://github.com/typescript-language-server/typescript-language-server#readme>
- <https://github.com/typescript-language-server/typescript-language-server/releases>
- <https://github.com/typescript-language-server/typescript-language-server/tree/master/docs>
- source_facts.package-manager


## 安全说明

没有找到 typescript-language-server 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 其他软件包管理器记录

- Nix - typescript-language-server: normalized package name match | nixpkgs package indexes: pkgs/by-name/ty/typescript-language-server/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - typescript-language-server - 5.1.3-1: normalized package name match | Arch Linux sync databases: typescript-language-server from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Language Server Protocol (LSP) implementation for TypeScript using tsserver | https://github.com/typescript-language-server/typescript-language-server
- MacPorts - typescript-language-server: normalized package name match | MacPorts ports tree: devel/typescript-language-server/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/typescript-language-server.yml](https://github.com/mxcl/pkgdb/blob/main/combined/typescript-language-server.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
