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:'
Mantenedores costumam responder em até 1 dia
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 55/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- node.js, nuxt, typescript
- Domínio
- backend
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
🐛 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
- Linguagem predominante
- TypeScript
- Estrelas
- 587
- Forks
- 99
- Merge médio
- 1d 7h
- PRs com merge (30d)
- 5
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de nuxt/scripts
-
Nuxt Modules Readme not foundTalvez já em andamento @harlan-zw assumiu há 1 dia. Abertabug harlan-agent-ready-to-implement
Dificuldade 3/5 Meio dia Facilidade para iniciantes 40/100
nuxt/scripts#977 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
harlan-agent-ready-to-spec
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
nuxt/scripts#949 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
harlan-agent-wait-to-implement
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 58/100
nuxt/scripts#887 · 7 comentários ·
Mantenedores costumam responder em até 1 dia
-
Loading 3rd party scripts for unused widgetTalvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. Abertaharlan-agent-wait-to-implement
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 55/100
nuxt/scripts#882 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
harlan-agent-wait-to-implement
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
nuxt/scripts#881 · 1 comentário · 1 reação ·
Mantenedores costumam responder em até 1 dia
Todas as issues de nuxt/scripts
Issues semelhantes
-
bug priority: low role: BE stage: now
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 86/100
ahmadrosid/nakama#2594 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
milind-soni/OpenMausBot#6495 ·
Mantenedores costumam responder em até 1 dia
-
Navigating the session tree adds the branch's prompts to Up-arrow history againTalvez já em andamento @acmerfight assumiu hoje. Abertauntriaged
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
earendil-works/pi#12279 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 1 dia
-
approved documentation
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 89/100
vitest-dev/vitest#12015 · 4 comentários ·
Mantenedores costumam responder em até 1 dia