Subscribe on changes!

Build errored out

avatar
May 2nd 2020

npx create-vite-app <my-app>

when run build errored out:

{ [Error: ENOENT: no such file or directory, rmdir 'xxx/dist']
  errno: -2,
  code: 'ENOENT',
  syscall: 'rmdir',
  path: 'xxx/dist' }

need to manually create dist folder,maybe it needs to be automatic.

Environment Info:
Node: v10.19.0
npm: 6.13.4
npmPackages:"vite": "^0.5.1"
avatar
May 2nd 2020

me too, need create dist by self, i wish i can create by auto;

avatar
May 2nd 2020

Hmm, it seems fs.mkdir(..., { recursive: true }) is not supported in Node 10.