# 使用 npm 安装 node-llama-cpp

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

## 安装

```sh
sudo av install npm:node-llama-cpp
```

其他安装命令:

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

- npm (100%):

```sh
npm install -g node-llama-cpp
```

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:node-llama-cpp
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/node-llama-cpp>
- **版本:** 3.18.1
- **来源摘要:** Run AI models locally on your machine with node.js bindings for llama.cpp. Enforce a JSON schema on the model output on the generation level
- **主页:** <https://node-llama-cpp.withcat.ai>
- **仓库:** <https://github.com/withcatai/node-llama-cpp>
- **上游文档:** <https://node-llama-cpp.withcat.ai>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/node-llama-cpp/-/node-llama-cpp-3.18.1.tgz>
- **问题跟踪器:** <https://github.com/withcatai/node-llama-cpp/issues>
- **发布时间:** 2026-03-17T08:38:18.502Z
- **最后更新:** 2026-03-17T08:38:18.502Z
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- nlc (cli)
- node-llama-cpp (cli)
- node-llama-cpp (别名)

## 依赖

- @huggingface/jinja
- async-retry
- bytes
- chalk
- chmodrp
- cmake-js
- cross-spawn
- env-var
- filenamify
- fs-extra
- ignore
- ipull
- is-unicode-supported
- lifecycle-utils
- log-symbols
- nanoid
- node-addon-api
- ora
- pretty-ms
- proper-lockfile
- semver
- simple-git
- slice-ansi
- stdout-update
- strip-ansi
- validate-npm-package-name
- which
- yargs

## 构建依赖

- @commitlint/cli
- @commitlint/config-conventional
- @eslint/compat
- @fontsource/inter
- @nolebase/vitepress-plugin-git-changelog
- @nolebase/vitepress-plugin-og-image
- @resvg/resvg-js
- @semantic-release/exec
- @semantic-release/github
- @semantic-release/npm
- @shikijs/vitepress-twoslash
- @stylistic/eslint-plugin
- @types/async-retry
- @types/bytes
- @types/cross-spawn
- @types/fs-extra
- @types/node
- @types/proper-lockfile
- @types/semver
- @types/validate-npm-package-name
- @types/which
- @types/yargs
- @vitest/coverage-v8
- @vitest/ui
- electron
- eslint
- eslint-import-resolver-typescript
- eslint-plugin-import
- eslint-plugin-jsdoc
- eslint-plugin-n
- feed
- husky
- rehype
- rimraf
- semantic-release
- sharp
- tslib
- typedoc
- typedoc-plugin-markdown
- typedoc-plugin-mdn-links
- typedoc-vitepress-theme
- typescript
- typescript-eslint
- vite-node
- vitepress
- vitepress-plugin-llms
- vitest
- zx

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 3.18.1
- 管理器更新时间: 2026-03-17
- 本地数据: OK
- 上游仓库: https://github.com/withcatai/node-llama-cpp
- 信息: No cached GitHub release or tag data was available.

## 安全说明

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


## 源数据库详情

- **Source Database:** npm registry
- **Dist Tags:** Beta: 3.0.0-beta.47, Latest: 3.18.1
- **Version Count:** 135
- **Maintainers:** giladgd
- **Author:** Gilad S.
- **Publisher:** GitHub Actions
- **Engines:** Node: >=20.0.0
- **Peer Dependencies:** typescript
- **Optional Dependencies:** @node-llama-cpp/linux-arm64, @node-llama-cpp/linux-armv7l, @node-llama-cpp/linux-x64, @node-llama-cpp/linux-x64-cuda, @node-llama-cpp/linux-x64-cuda-ext, @node-llama-cpp/linux-x64-vulkan, @node-llama-cpp/mac-arm64-metal, @node-llama-cpp/mac-x64, @node-llama-cpp/win-arm64, @node-llama-cpp/win-x64, @node-llama-cpp/win-x64-cuda, @node-llama-cpp/win-x64-cuda-ext, @node-llama-cpp/win-x64-vulkan
- **Funding:** <https://github.com/sponsors/giladgd>
- **Integrity:** sha512-w0zfuy/IKS2fhrbed5SylZDXJHTVz4HnkwZ4UrFPgSNwJab3QIPwIl4lyCKHHy9flLrtxsAuV5kXfH3HZ6bb8w==
- **Shasum:** 29f5edfaea8dfac56439f957378248af3bf37e5a
- **Unpacked Size:** 32,332,515
- **File Count:** 0
- **Created At:** 2023-08-10T19:28:17.078Z
- **Latest Published At:** 2026-03-17T08:38:18.502Z
- **Modified At:** 2026-03-17T08:38:18.839Z


## 相关链接

- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched curated package taxonomy and local package facts.
- [ipull](https://www.automicvault.com/zh-hans/pkg/npm/ipull/) - Local package facts share a topical domain. Shared terms: ansi, async, async-retry, bytes, chalk.
- [cmake-js](https://www.automicvault.com/zh-hans/pkg/npm/cmake-js/) - Both packages touch the same language runtime or ecosystem. Shared terms: addon, api, bindings, cli, cmake.
- [mastra](https://www.automicvault.com/zh-hans/pkg/npm/mastra/) - Both packages touch the same language runtime or ecosystem. Shared terms: ai, ai-tools, cli, developer, developer-tools.

## 来源

- Nucleus package database
- package-page enrichment
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
