The maintenance of vm2 has been discontinued due to critical security issues (patriksimek/vm2#533), and isolated-vm is suggested as replacement.
Quoted from the requirements of isolated-vm:
This project requires nodejs version 16.x (or later).
🚨 If you are using a version of nodejs 20.x or later, you must pass --no-node-snapshot to node.
Furthermore, to install this module you will need a compiler installed. If you run into errors while
running npm install isolated-vm it is likely you don't have a compiler set up, or your compiler is
too old.
Windows + OS X users should follow the instructions here: node-gyp
Ubuntu users should run: sudo apt-get install python g++ build-essential
Alpine users should run: sudo apk add python3 make g++
Amazon Linux AMI users should run: sudo yum install gcc72 gcc72-c++
Arch Linux users should run: sudo pacman -S make gcc python
Red Hat users should run: sudo dnf install python3 make gcc gcc-c++ zlib-devel brotli-devel openssl-devel
The maintenance of vm2 has been discontinued due to critical security issues (patriksimek/vm2#533), and isolated-vm is suggested as replacement.
Quoted from the requirements of isolated-vm:
This project requires nodejs version 16.x (or later).
🚨 If you are using a version of nodejs 20.x or later, you must pass
--no-node-snapshot
tonode
.Furthermore, to install this module you will need a compiler installed. If you run into errors while running
npm install isolated-vm
it is likely you don't have a compiler set up, or your compiler is too old.sudo apt-get install python g++ build-essential
sudo apk add python3 make g++
sudo yum install gcc72 gcc72-c++
sudo pacman -S make gcc python
sudo dnf install python3 make gcc gcc-c++ zlib-devel brotli-devel openssl-devel