Closed
Description
Describe the bug
An error occurred while creating creating a project.
Reproduction
pnpm create tauri-app
Platform and versions
OS: Windows 10 x64
Node.js: 16.16.0
npm: 8.11.0
pnpm: 7.6.0
rustup: 1.24.3
rustc: 1.60.0
cargo: 1.60.0
Rust toolchain: stable-x86_64-pc-windows-msvc
Stack trace
ERROR Error: command failed: pnpm install --reporter silent --shamefully-hoist
Error: command failed: pnpm install --reporter silent --shamefully-hoist
at ChildProcess.<anonymous> (D:\npm\cache\_npx\18fcca21cf4d8fd7\node_modules\@vue\cli\lib\util\executeCommand.js:138:16)
at ChildProcess.emit (node:events:527:28)
at ChildProcess.cp.emit (D:\npm\cache\_npx\18fcca21cf4d8fd7\node_modules\cross-spawn\lib\enoent.js:34:29)
at maybeClose (node:internal/child_process:1092:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
Error with command: npx
Error: Error: Command failed with exit code 1: npx @vue/cli@latest create test -m pnpm
at D:\pnpm\store\v3\tmp\dlx-1268\node_modules\.pnpm\registry.npmmirror.com+create-tauri-app@1.0.2\node_modules\create-tauri-app\dist\index.js:146:15
at Generator.throw (<anonymous>)
at rejected (D:\pnpm\store\v3\tmp\dlx-1268\node_modules\.pnpm\registry.npmmirror.com+create-tauri-app@1.0.2\node_modules\create-tauri-app\dist\index.js:38:65)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Additional context
Based on the error message (in Stack trace), I can roughly guess the cause of the error: According to the error message, "npx @vue/cli" was executed during the creation process, but my "@vue/cli" was installed in pnpm instead of npm. That's what led to the mistake.
Metadata
Assignees
Labels
No labels