# 使用 npm 安装 typescript

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

## 安装

```sh
sudo av install npm:typescript
```

其他安装命令:

### 便携式和语言管理器

- npm (100%):

```sh
npm install -g typescript
```

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:typescript
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/typescript>
- **版本:** 7.0.2
- **来源摘要:** TypeScript is a language for application scale JavaScript development
- **主页:** <https://www.typescriptlang.org/>
- **仓库:** <https://github.com/microsoft/TypeScript>
- **上游文档:** <https://www.typescriptlang.org/>
- **许可证:** Apache-2.0
- **源码归档:** <https://registry.npmjs.org/typescript/-/typescript-7.0.2.tgz>
- **问题跟踪器:** <https://github.com/microsoft/TypeScript/issues>
- **发布时间:** 2026-07-08T15:55:18.431Z
- **最后更新:** 2026-07-08T15:55:18.431Z
- **已生成:** 2026-07-25T07:20:51+00:00

## 可执行文件

- tsc (cli)

## 依赖

- @typescript/typescript-aix-ppc64
- @typescript/typescript-darwin-arm64
- @typescript/typescript-darwin-x64
- @typescript/typescript-freebsd-arm64
- @typescript/typescript-freebsd-x64
- @typescript/typescript-linux-arm
- @typescript/typescript-linux-arm64
- @typescript/typescript-linux-loong64
- @typescript/typescript-linux-mips64el
- @typescript/typescript-linux-ppc64
- @typescript/typescript-linux-riscv64
- @typescript/typescript-linux-s390x
- @typescript/typescript-linux-x64
- @typescript/typescript-netbsd-arm64
- @typescript/typescript-netbsd-x64
- @typescript/typescript-openbsd-arm64
- @typescript/typescript-openbsd-x64
- @typescript/typescript-sunos-x64
- @typescript/typescript-win32-arm64
- @typescript/typescript-win32-x64

## 安装行为

- post-install 钩子: 未定义
- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-07-25
- 管理器版本: 7.0.2
- 管理器更新时间: 2026-07-08
- 本地数据: OK
- 上游仓库: https://github.com/microsoft/TypeScript
- 信息: No cached GitHub release or tag data was available.

## 安全说明

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


## 源数据库详情

- **Source Database:** npm registry
- **Dist Tags:** Beta: 6.0.0-beta, Dev: 3.9.4, Insiders: 4.6.2-insiders.20220225, Latest: 7.0.2, Next: 7.1.0-dev.20260712.1, Rc: 7.0.1-rc, Tag For Publishing Older Releases: 4.1.6
- **Version Count:** 3,766
- **Maintainers:** microsoft1es, typescript-bot, weswigham, andrewbranch, typescript-deploys, microsoft-oss-releases, jakebailey
- **Author:** Microsoft Corp.
- **Publisher:** microsoft1es
- **Engines:** Node: >=16.20.0
- **Optional Dependencies:** @typescript/typescript-aix-ppc64, @typescript/typescript-darwin-arm64, @typescript/typescript-darwin-x64, @typescript/typescript-freebsd-arm64, @typescript/typescript-freebsd-x64, @typescript/typescript-linux-arm, @typescript/typescript-linux-arm64, @typescript/typescript-linux-loong64, @typescript/typescript-linux-mips64el, @typescript/typescript-linux-ppc64, @typescript/typescript-linux-riscv64, @typescript/typescript-linux-s390x, @typescript/typescript-linux-x64, @typescript/typescript-netbsd-arm64, @typescript/typescript-netbsd-x64, @typescript/typescript-openbsd-arm64, @typescript/typescript-openbsd-x64, @typescript/typescript-sunos-x64, @typescript/typescript-win32-arm64, @typescript/typescript-win32-x64
- **Integrity:** sha512-8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA==
- **Shasum:** 9ec773d7954a8c182c17cc5bbd575aa28bc51582
- **Unpacked Size:** 2,497,498
- **File Count:** 0
- **Created At:** 2012-10-01T15:35:39.553Z
- **Latest Published At:** 2026-07-08T15:55:18.431Z
- **Modified At:** 2026-07-12T08:22:26.685Z

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

- Nix - typescript: normalized package name match | nixpkgs package indexes: pkgs/by-name/ty/typescript/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - typescript - 5.9.2-r0: normalized package name match | Alpine Linux edge package indexes: typescript from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | TypeScript is a superset of JavaScript that compiles to clean JavaScript output | https://www.typescriptlang.org/
- dnf - typescript - 6.0.2-1.fc45: normalized package name match | Fedora Rawhide package metadata: typescript from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | A language for application-scale JavaScript | https://www.typescriptlang.org
- pacman - typescript - 6.0.3-1: normalized package name match | Arch Linux sync databases: typescript from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | JavaScript with syntax for types | http://www.typescriptlang.org
- zypper - typescript - 5.9.2-1.3: normalized package name match | openSUSE Tumbleweed package metadata: typescript from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | A language for application scale JavaScript development | http://typescriptlang.org/
- MacPorts - typescript: normalized package name match | MacPorts ports tree: lang/typescript/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - typescript: normalized package name match | Chocolatey community package catalog: typescript from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','timberwinr'


## 相关链接

- [Language runtime packages](https://www.automicvault.com/zh-hans/pkg/language-runtime-packages/) - Matched curated package taxonomy and local package facts.
- [typescript](https://www.automicvault.com/zh-hans/pkg/brew/typescript/) - Same normalized package name appears in another local ecosystem. Shared terms: compiler, development, javascript, language, scale.
- [rome](https://www.automicvault.com/zh-hans/pkg/npm/rome/) - Both packages touch the same language runtime or ecosystem. Shared terms: arm64, darwin, is, javascript, linux.
- [typescript-language-server](https://www.automicvault.com/zh-hans/pkg/brew/typescript-language-server/) - Both packages touch the same language runtime or ecosystem. Shared terms: javascript, language, typescript.
- [typescript](https://www.automicvault.com/zh-hans/pkg/brew/typescript/) - Same normalized package name exists in another local package ecosystem.

## 来源

- Nucleus package database
- package-page enrichment
- package version freshness
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
