# 使用 npm 安装 vm2

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

## 安装

```sh
sudo av install npm:vm2
```

其他安装命令:

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

- npm (100%):

```sh
npm install -g vm2
```

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:vm2
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/vm2>
- **版本:** 3.11.5
- **来源摘要:** vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules.
- **主页:** <https://github.com/patriksimek/vm2#readme>
- **仓库:** <https://github.com/patriksimek/vm2>
- **上游文档:** <https://github.com/patriksimek/vm2#readme>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/vm2/-/vm2-3.11.5.tgz>
- **问题跟踪器:** <https://github.com/patriksimek/vm2/issues>
- **发布时间:** 2026-05-18T15:37:26.138Z
- **最后更新:** 2026-05-18T15:37:26.138Z
- **已生成:** 2026-07-10T07:20:53+00:00

## 可执行文件

- vm2 (cli)
- vm2 (别名)

## 依赖

- acorn
- acorn-walk

## 构建依赖

- eslint
- mocha

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-10
- 管理器版本: 3.11.5
- 管理器更新时间: 2026-05-18
- 本地数据: OK
- 上游仓库: https://github.com/patriksimek/vm2
- 信息: No cached GitHub release or tag data was available.

## 安全说明

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


## 源数据库详情

- **Source Database:** npm registry
- **Dist Tags:** Latest: 3.11.5
- **Version Count:** 77
- **Maintainers:** patriksimek
- **Author:** Patrik Simek
- **Publisher:** GitHub Actions
- **Engines:** Node: >=6.0
- **Integrity:** sha512-RSrkBiwrj6FRU+QdqNs6KG0XdlvJCjpQ4GXiqmMbrhmwfu5k/XIMpAer0L8f6iuf0uJ3a4T1xJN126Q8yf0VIA==
- **Shasum:** 6dcebf22c7bf77acf80571f26f1040ee626a97d0
- **Unpacked Size:** 385,628
- **File Count:** 0
- **Created At:** 2014-01-14T12:17:34.402Z
- **Latest Published At:** 2026-05-18T15:37:26.138Z
- **Modified At:** 2026-05-18T15:37:26.420Z


## 相关链接

- [Security and crypto packages](https://www.automicvault.com/zh-hans/pkg/security-crypto-tools/) - Matched curated package taxonomy and local package facts.
- [lavamoat](https://www.automicvault.com/zh-hans/pkg/npm/lavamoat/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, code, is, modules, node.
- [sandvault](https://www.automicvault.com/zh-hans/pkg/brew/sandvault/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, run, sandbox, sandboxing, security.
- [bubblewrap](https://www.automicvault.com/zh-hans/pkg/brew/bubblewrap/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, sandbox, sandboxing, security.

## 来源

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