Skip to content

ENOENT handling issue on stackblitz #46

Description

@pi0

"tinyexec": "^0.3.2"

Context

Reported from nuxt/cli#747

nuxt cli uses nypm) which uses tinyexec and uses x("corepack", ["--version"]) to check avability.

Reproduction

import { x } from 'tinyexec';

try {
  const { exitCode } = await x('xyz');
  console.log({ exitCode });
} catch (error) {
  console.error(`exec error: ${error}`);
}

Local (Node.js 22.13 on macos):

exec error: Error: spawn xyz ENOENT
Script end

Stackblitz (reproduction):

Image

It seems an issue with WebContainers as Node.js is force-closing. Reporting it to the lowest level I could investigate will try to make it more minimal.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions