Skip to content

npm create vue@3 1 throwsERR_INVALID_ARG_TYPE #201

Closed
@sapphi-red

Description

@sapphi-red

npm create vue@3 1 / yarn create vue 1 / pnpm create vue 1 throws the following error.

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type number (1)
    at new NodeError (node:internal/errors:387:5)
    at validateString (node:internal/validators:121:11)
    at Object.join (node:path:429:7)
    at init (C:\Users\green\AppData\Local\npm-cache\_npx\d8a5db81a46afa44\node_modules\create-vue\outfile.cjs:4041:22)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  code: 'ERR_INVALID_ARG_TYPE'
}

Original issue: vitejs/vite#11129

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions