Skip to content

create-vue@3.16.0 throws error on windows #727

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nikoeno opened this issue Apr 1, 2025 · 11 comments
Closed

create-vue@3.16.0 throws error on windows #727

nikoeno opened this issue Apr 1, 2025 · 11 comments
Labels
bug Something isn't working

Comments

@nikoeno
Copy link

nikoeno commented Apr 1, 2025

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'
}
@nikoeno nikoeno added the bug Something isn't working label Apr 1, 2025
@valros76
Copy link

valros76 commented Apr 1, 2025

I have the same error when i want create a new project, with the command pnpm create vue@latest.

EDIT : You can create an project with "pnpm create vue@3.15.1", before patch.

@landon262547
Copy link

landon262547 commented Apr 1, 2025

Same error.

I use with both pnpm and npm with create vue@latest, even reinstall everything else then I saw this open issue.

Hopefully not only me affecting this.

@stjankovic
Copy link

Same issue here:

Image

@ivangil-dev
Copy link

Same here, using windows! With 3.15.1 there is no problem, 3.16 detects any windows drive as url and gives error

npm create vue@latest

> npx
> create-vue

node:internal/modules/esm/load:249
    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:249:11)
    at defaultLoad (node:internal/modules/esm/load:130:3)
    at ModuleLoader.load (node:internal/modules/esm/loader:555:13)
    at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:434:56)
    at new ModuleJob (node:internal/modules/esm/module_job:71:27)
    at #createModuleJob (node:internal/modules/esm/loader:447:17)
    at ModuleLoader.getJobFromResolveResult (node:internal/modules/esm/loader:259:34)
    at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:17)
    at async ModuleLoader.import (node:internal/modules/esm/loader:472:23) {
  code: 'ERR_UNSUPPORTED_ESM_URL_SCHEME'
}

@MarcoSoftEng
Copy link

same... windows with pnpm and npm.

@aacbc
Copy link

aacbc commented Apr 2, 2025

same !!!! npm create vue@latest,help me

@laughm
Copy link

laughm commented Apr 2, 2025

command:
npm init vue@3.15
or
npm create vue@3.15

@LuisDev2001
Copy link

Same issue here on windows 11

Image

@xiake145
Copy link

xiake145 commented Apr 2, 2025

Image
I have the same problem

@cexbrayat
Copy link
Member

Thank you everyone for the report, we'll look into this.

In the meantime you can use npm create vue@3.15.1.

@vuejs vuejs locked and limited conversation to collaborators Apr 2, 2025
@cexbrayat
Copy link
Member

This should have been fixed by @haoqunjiang , who released v3.16.2 with the fix. Let us know if you encounter other issues.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests