Skip to content

create-vue@3.16.0 throws error on windows #727

Closed
@nikoeno

Description

@nikoeno

Describe the bug

command npm create vue@3.16.0 throws a error on machines with windows OS

Expected behavior

Command creates a folder with vuejs project

How to reproduce

Bug reproduces on windows 11 (version 24H2)
Node.js v23.8.0

Steps to reproduce the behavior:

  1. Run npm create vue@3.16.0 in the terminal
  2. Press "y" to install a create-vue@3.16.0 dependency(if it not installed)
  3. Result
    ----------------------------------------------------------------------->
npm create vue@3.16.0
Need to install the following packages:
create-vue@3.16.0
Ok to proceed? (y) y


> npx
> create-vue

node:internal/modules/esm/load:208
    throw new ERR_UNSUPPORTED_ESM_URL_SCHEME(parsed, schemes);
          ^

Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'
    at throwIfUnsupportedURLScheme (node:internal/modules/esm/load:208:11)
    at defaultLoad (node:internal/modules/esm/load:103:3)
    at ModuleLoader.load (node:internal/modules/esm/loader:739:12)
    at ModuleLoader.loadAndTranslate (node:internal/modules/esm/loader:519:43)
    at #createModuleJob (node:internal/modules/esm/loader:543:36)
    at #getJobFromResolveResult (node:internal/modules/esm/loader:312:34)
    at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:280:41)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:582:25) {
  code: 'ERR_UNSUPPORTED_ESM_URL_SCHEME'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions