-
Notifications
You must be signed in to change notification settings - Fork 33
No shell available. Mount a WasmVM runtime to enable exec() #64
Copy link
Copy link
Open
Description
when running the example in the README
import { createKernel, createInMemoryFileSystem, createNodeRuntime } from "secure-exec";
const kernel = createKernel({
filesystem: createInMemoryFileSystem(),
});
await kernel.mount(createNodeRuntime());
const result = await kernel.exec("node -e \"console.log('hello from secure-exec')\"");
console.log(result.stdout); // "hello from secure-exec\n"
await kernel.dispose();I get:
236 | // Flush pending /bin stubs before shell PATH lookup
237 | await this.flushPendingBinEntries();
238 | // Route through shell
239 | const shell = this.commandRegistry.resolve("sh");
240 | if (!shell) {
241 | throw new Error("No shell available. Mount a WasmVM runtime to enable exec().");
^
error: No shell available. Mount a WasmVM runtime to enable exec().Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels