# 使用 npm 安装 knex

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

## 安装

```sh
sudo av install npm:knex
```

其他安装命令:

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

- npm (100%):

```sh
npm install -g knex
```

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:knex
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/knex>
- **版本:** 3.3.0
- **来源摘要:** A batteries-included SQL query & schema builder for PostgresSQL, MySQL, CockroachDB, MSSQL and SQLite3
- **主页:** <https://knexjs.org/>
- **仓库:** <https://github.com/knex/knex>
- **上游文档:** <https://knexjs.org/>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/knex/-/knex-3.3.0.tgz>
- **问题跟踪器:** <https://github.com/knex/knex/issues>
- **发布时间:** 2026-06-26T14:56:43.597Z
- **最后更新:** 2026-06-26T14:56:43.597Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- knex (cli)
- knex (别名)

## 依赖

- colorette
- commander
- debug
- escalade
- esm
- get-package-type
- getopts
- interpret
- lodash
- pg-connection-string
- rechoir
- resolve-from
- tarn
- tildify

## 构建依赖

- @tsconfig/node12
- @tsconfig/recommended
- @types/minimatch
- @types/node
- JSONStream
- better-sqlite3
- chai
- chai-as-promised
- chai-subset-in-order
- cli-testlab
- cross-env
- eslint
- eslint-config-prettier
- eslint-plugin-import
- eslint-plugin-mocha-no-only
- eslint-plugin-n
- eslint-plugin-prettier
- expect-type
- faucet
- husky
- jake
- lint-staged
- mariadb
- mocha
- mock-fs
- mysql
- mysql2
- nyc
- oracledb
- pg
- pg-query-stream
- prettier
- rimraf
- semver
- sinon
- sinon-chai
- source-map-support
- sqlite3
- tape
- tedious
- toxiproxy-node-client
- ts-node
- tsd
- tstyche
- typescript

## 安装行为

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

## 版本和新鲜度

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

## 安全说明

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


## 源数据库详情

- **Source Database:** npm registry
- **Dist Tags:** Beta: 0.21.5-next1, Latest: 3.3.0, Next: 2.5.1, Oracle Fix: 0.16.6-oracle-fix
- **Version Count:** 264
- **Maintainers:** tgriesser, wubzz, elhigu, kibertoad, olivier.cavadenti
- **Author:** Tim Griesser
- **Publisher:** GitHub Actions
- **Engines:** Node: >=16
- **Peer Dependencies:** pg-query-stream
- **Integrity:** sha512-LgWl031hNuLv9Lhxdd9093zULa2aNcoP04Bk29e5NidgRcEr/T0rAr2WYi4BhjTiCDoQiRU56meUE5rppLKZzQ==
- **Shasum:** 451d24d5670939fc4ce54f2269163dbf2627d682
- **Unpacked Size:** 941,393
- **File Count:** 0
- **Created At:** 2013-05-01T12:36:13.380Z
- **Latest Published At:** 2026-06-26T14:56:43.597Z
- **Modified At:** 2026-06-26T14:56:43.936Z


## 相关链接

- [Database and data packages](https://pkg.so/zh-hans/database-data-tools/) - Matched curated package taxonomy and local package facts.
- [mssql](https://pkg.so/zh-hans/npm/mssql/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, commander, connection, data, database.
- [knex-migrate](https://pkg.so/zh-hans/npm/knex-migrate/) - Package names and metadata indicate a similar tool family. Shared terms: cli, data, database, knex, lodash.
- [graphile-migrate](https://pkg.so/zh-hans/npm/graphile-migrate/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, connection, data, database, pg-connection-string.

## 来源

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