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:
- Open Command Prompt or PowerShell 7 on Windows 11 24H2
- Run
npx create-lz-oapp@latest
- Select any example
- Select pnpm or npm as package manager
- 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.
Describe the bug
When running
npx create-lz-oapp@latestcommand 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:
npx create-lz-oapp@latestExpected behavior
The installation should complete successfully and create the lz-oapp application without any errors.
Screenshots
Environment (please complete the following information):
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.