- Notifications
You must be signed in to change notification settings - Fork477
Closed
Description
Describe the bug
commandnpm 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:
- Run
npm create vue@3.16.0
in the terminal - Press "y" to install a create-vue@3.16.0 dependency(if it not installed)
- Result
----------------------------------------------------------------------->
npm create vue@3.16.0Need to install the following packages:create-vue@3.16.0Ok to proceed? (y) y> npx> create-vuenode: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'}