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:'
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 55/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- node.js, nuxt, typescript
- Área
- backend
Línea de trabajo
Start by reproducing the failure on Windows with the linked Nuxt project and inspect the nuxt prepare postinstall path mentioned in the report. Trace where the ESM loader receives a drive-letter path and identify the relevant tests; done means the reported commands complete without this protocol error on Windows.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
🐛 The bug
When I try to use the 2.0 beta version on windows, Any command i try to run npm run dev npm install etc returns this error. I know the issue is caused by this extension. Even empty new projects start to error when nuxt scripts is installed
npm notice run postinstall
npm notice run nuxt prepare
ERROR 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:193:11)
at defaultLoadSync (node:internal/modules/esm/load:146:3)
at #loadAndMaybeBlockOnLoaderThread (node:internal/modules/esm/loader:809:12)
at #loadSync (node:internal/modules/esm/loader:841:53)
at ModuleLoader.load (node:internal/modules/esm/loader:790:26)
at ModuleLoader.loadAndTranslate (node:internal/modules/esm/loader:501:31)
at #getOrCreateModuleJobAfterResolve (node:internal/modules/esm/loader:567:36)
at afterResolve (node:internal/modules/esm/loader:614:52)
at ModuleLoader.getOrCreateModuleJob (node:internal/modules/esm/loader:620:12)
at node:internal/modules/esm/loader:639:32
npm error code 1
npm error path C:\Users\\Desktop\here
npm error command failed
npm error command C:\WINDOWS\system32\cmd.exe /d /s /c nuxt prepare
npm error A complete log of this run can be found in: C:\Users\\AppData\Local\npm-cache\_logs\2026-10-26T15_26_47_901Z-debug-0.log
🛠️ To reproduce
🌈 Expected behavior
No section in the docs for this
ℹ️ Additional context
No response
- Lenguaje dominante
- TypeScript
- Estrellas
- 587
- Forks
- 99
- Merge medio
- 1 d 7 h
- PR fusionados (30 d)
- 5
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de nuxt/scripts
-
Nuxt Modules Readme not foundPosiblemente ocupada @harlan-zw la tomó hace 1 día. Abiertobug harlan-agent-ready-to-implement
Dificultad 3/5 Medio día Aptitud para principiantes 40/100
nuxt/scripts#977 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
harlan-agent-ready-to-spec
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
nuxt/scripts#949 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
harlan-agent-wait-to-implement
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
nuxt/scripts#887 · 7 comentarios ·
Los mantenedores suelen responder en 1 día
-
Loading 3rd party scripts for unused widgetQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abiertoharlan-agent-wait-to-implement
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
nuxt/scripts#882 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
harlan-agent-wait-to-implement
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
nuxt/scripts#881 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
Todos los issues de nuxt/scripts
Issues similares
-
bug priority: low role: BE stage: now
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
ahmadrosid/nakama#2594 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
milind-soni/OpenMausBot#6495 ·
Los mantenedores suelen responder en 1 día
-
Navigating the session tree adds the branch's prompts to Up-arrow history againPosiblemente ocupada @acmerfight la tomó hoy. Abiertountriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
earendil-works/pi#12279 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
approved documentation
Dificultad 1/5 Menos de una hora Aptitud para principiantes 89/100
vitest-dev/vitest#12015 · 4 comentarios ·
Los mantenedores suelen responder en 1 día