vite: [docs]: pnpm create execution problem
Describe the bug
use
pnpm create vite my-vue-app -- --template vue
result
ERROR ERROR Unknown option: 'template'
Did you mean 'test-pattern'? Use "--config.unknown=value" to force an unknown option.
Reproduction
https://vitejs.cn/guide/#scaffolding-your-first-vite-project
System Info
System:
OS: Windows 10 10.0.22598
CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
Memory: 4.85 GB / 15.75 GB
Binaries:
Node: 16.9.0 - F:\nodejs\node.EXE
Yarn: 1.22.18 - F:\nodejs\yarn.CMD
npm: 7.21.1 - F:\nodejs\npm.CMD
Browsers:
Edge: 44.22598.200.0
Internet Explorer: 11.0.22598.1
Used Package Manager
pnpm
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn’t already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Vite issue and not a framework-specific issue. For example, if it’s a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 24 (9 by maintainers)
Also in PowerShell, you can just use
---instead of--. No quotes needed.I think you need to run with
"for windows + powershell. It works for me.CMD works without
"though.