+
Skip to content

Support Windows - EINVAL: invalid argument, mkdir #13

@hyunbinseo

Description

@hyunbinseo

error TS5033: Could not write file '/zshy/D:/zshy/dist/index.d.ts': EINVAL: invalid argument, mkdir 'D:\zshy\D:'.
error TS5033: Could not write file '/zshy/D:/zshy/dist/index.js': EINVAL: invalid argument, mkdir 'D:\zshy\D:'.

PS D:\zshy> pnpm zshy
   ╔═══════════════════════════════════════════════╗
   ║ zshy » the bundler-free TypeScript build tool ║
   ╚═══════════════════════════════════════════════╝
»  Starting build...
»  Detected project root: D:\zshy
»  Reading package.json from ./package.json
»  Reading tsconfig from ./tsconfig.json
»  The "files" key is missing in package.json. Setting to "dist".
»  Determining entrypoints...
   ╔═════════════╤════════════════╗
   ║ Subpath     │ Entrypoint     ║
   ╟─────────────┼────────────────╢
   ║ "undefined" │ ./src/index.ts ║
   ╚═════════════╧════════════════╝
»  Resolved build paths:
   ╔══════════╤═══════════════╗
   ║ Location │ Resolved path ║
   ╟──────────┼───────────────╢
   ║ rootDir  │ ./../src      ║
   ║ outDir   │ ./dist        ║
   ╚══════════╧═══════════════╝
»  Package is a CommonJS module (package.json#/type not set to "module")
»  Cleaning up outDir...
»  Cleaning up declarationDir...
»  Building CJS...
»  Found 2 error(s) and 0 warning(s) during emit:

error TS5033: Could not write file '/zshy/D:/zshy/dist/index.d.ts': EINVAL: invalid argument, mkdir 'D:\zshy\D:'.
error TS5033: Could not write file '/zshy/D:/zshy/dist/index.js': EINVAL: invalid argument, mkdir 'D:\zshy\D:'.

»  Building ESM... (rewriting .ts -> .mjs/.d.mts)
»  Found 2 error(s) and 0 warning(s) during emit:

error TS5033: Could not write file '/zshy/D:/zshy/dist/index.d.ts': EINVAL: invalid argument, mkdir 'D:\zshy\D:'.
error TS5033: Could not write file '/zshy/D:/zshy/dist/index.js': EINVAL: invalid argument, mkdir 'D:\zshy\D:'.

»  Updating package.json#/exports...
»  Compilation finished with 4 error(s) and 0 warning(s)
»  Build completed with errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载