# 使用 npm 安装 xo

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

## 安装

```sh
sudo av install npm:xo
```

其他安装命令:

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

- npm (100%):

```sh
npm install -g xo
```

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:xo
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/xo>
- **版本:** 4.0.0
- **来源摘要:** JavaScript/TypeScript linter (ESLint wrapper) with great defaults
- **主页:** <https://github.com/xojs/xo#readme>
- **仓库:** <https://github.com/xojs/xo>
- **上游文档:** <https://github.com/xojs/xo#readme>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/xo/-/xo-4.0.0.tgz>
- **问题跟踪器:** <https://github.com/xojs/xo/issues>
- **发布时间:** 2026-07-06T23:11:26.344Z
- **最后更新:** 2026-07-06T23:11:26.344Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- xo (cli)

## 依赖

- @sindresorhus/tsconfig
- arrify
- cosmiconfig
- define-lazy-prop
- eslint
- eslint-config-xo
- eslint-formatter-pretty
- find-cache-directory
- get-stdin
- get-tsconfig
- globby
- jiti
- meow
- micromatch
- open-editor
- path-exists
- prettier
- type-fest
- typescript

## 构建依赖

- @types/micromatch
- @types/node
- dedent
- eslint-plugin-vue
- execa
- husky
- np
- temp-dir
- xo

## 安装行为

- post-install 钩子: 未定义
- npm 生命周期脚本: prepare
- Bottle: 不可用

## 版本和新鲜度

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

## 安全说明

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


## 源数据库详情

- **Source Database:** npm registry
- **Dist Tags:** Latest: 4.0.0, Next: 0.61.0-2
- **Version Count:** 146
- **Maintainers:** sindresorhus
- **Author:** Sindre Sorhus
- **Publisher:** sindresorhus
- **Engines:** Node: >=22
- **Funding:** <https://github.com/sponsors/sindresorhus>
- **Integrity:** sha512-230aBWg2e2oAB1R60mh/naJ50k0YfLdkb4LZEn4D1WzaQwDxjj6btnoFPX/Go4E7EPhkKpsgZf4KllcL0XlPUg==
- **Shasum:** 78285d81415e531a398cd6f5ee27d2f40d64ab35
- **Unpacked Size:** 93,814
- **File Count:** 0
- **Created At:** 2012-05-24T04:56:46.528Z
- **Latest Published At:** 2026-07-06T23:11:26.344Z
- **Modified At:** 2026-07-06T23:11:26.470Z


## 相关链接

- [Web development packages](https://pkg.so/zh-hans/web-dev-tools/) - Matched curated package taxonomy and local package facts.
- [tsd](https://pkg.so/zh-hans/npm/tsd/) - Local package facts share a topical domain. Shared terms: cli, code, developer, developer-tools, eslint.
- [eslint-doc-generator](https://pkg.so/zh-hans/npm/eslint-doc-generator/) - Local package facts share a topical domain. Shared terms: cli, code, cosmiconfig, developer, developer-tools.
- [npm-package-json-lint](https://pkg.so/zh-hans/npm/npm-package-json-lint/) - Local package facts share a topical domain. Shared terms: cli, cosmiconfig, developer, developer-tools, fest.

## 来源

- pkg.so package database
- package-page enrichment
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
