# Install vm2 with npm

vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. Version 3.11.5 via npm; verified 2026-05-18.

## Install

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

Additional install commands:

### Portable and language managers

- npm (100%):

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

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:vm2
- **Package manager:** npm
- **Version:** 3.11.5
- **Source summary:** vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules.
- **Homepage:** <https://github.com/patriksimek/vm2#readme>
- **Last updated:** 2026-05-18T15:37:26.138Z
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- vm2 (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 3.11.5

## Security Notes

No matching local secret-handling manifest was found for vm2. Nucleus package metadata is still published here so future coverage has a stable package URL.



## Sources

- pkg.so package database
- pkgdb category and tag curation
- cross-ecosystem install command graph
