diff --git a/packages/create-vite/index.js b/packages/create-vite/index.js index cc0a78639755bb..c008106ed73228 100755 --- a/packages/create-vite/index.js +++ b/packages/create-vite/index.js @@ -227,7 +227,7 @@ async function init() { if (overwrite) { emptyDir(root) } else if (!fs.existsSync(root)) { - fs.mkdirSync(root) + fs.mkdirSync(root, { recursive: true }) } // determine template