Skip to content

bug: Installation Failure on Windows 11 with npx create-lz-oapp@latest #1341

@Fatorin

Description

@Fatorin

Describe the bug
When running npx create-lz-oapp@latest command on Windows 11 24H2, the installation process fails with an error related to the yoga-layout-prebuilt package. The specific error is "Error: spawn pnpm ENOENT", indicating that the system cannot find the pnpm command.

To Reproduce
Steps to reproduce the behavior:

  1. Open Command Prompt or PowerShell 7 on Windows 11 24H2
  2. Run npx create-lz-oapp@latest
  3. Select any example
  4. Select pnpm or npm as package manager
  5. Installation fails with an error

Expected behavior
The installation should complete successfully and create the lz-oapp application without any errors.

Screenshots

C:\Users\user\AppData\Local\npm-cache\_npx\a35db89d1bca433e\node_modules\yoga-layout-prebuilt\yoga-layout\build\Release\nbind.js:53
        throw ex;
        ^

Error: spawn pnpm ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:285:19)
    at onErrorNT (node:internal/child_process:483:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
Emitted 'error' event on ChildProcess instance at:
    at ChildProcess._handle.onexit (node:internal/child_process:291:12)
    at onErrorNT (node:internal/child_process:483:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawn pnpm',
  path: 'pnpm',
  spawnargs: [ 'install' ]
}

Environment (please complete the following information):

  • OS: Windows 11
  • OS Version 24H2
  • VM: node
  • VM Version: v22.14.0

Additional context
The issue appears to be specific to Windows environments. When running the same command on Ubuntu, the installation process completes successfully without any errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions