執行:pnpm create vite aaa -- --template vue?
終端報錯:
ERROR? ?ERROR? Unknown option: 'template'
Did you mean 'test-pattern'? Use "--config.unknown=value" to force an unknown option.
For help, run: pnpm help create
執行:pnpm create vite aaa -- --template vue?
終端報錯:
ERROR? ?ERROR? Unknown option: 'template'
Did you mean 'test-pattern'? Use "--config.unknown=value" to force an unknown option.
For help, run: pnpm help create
公眾號:1024技術圈
?? 提供互聯網知識和資訊,分享IT前沿技術,熱門資源,大廠面試題 ??
應該是你本地的環境不支持 double-dash,可參考:https://www.cyberciti.biz/faq...。
考慮升級下環境即可,或者直接按照官網給的例子來。
不是上面的原因,參考官方issue里解決方案,windows 下:
pnpm create vite aaa --- --template vue