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:'
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- node.js, nuxt, typescript
- 領域
- backend
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
🐛 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
- 主要言語
- TypeScript
- スター
- 587
- フォーク
- 99
- 平均マージ
- 1日 7時間
- マージ済み PR(30日)
- 5
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nuxt/scripts のほかの issue
-
Nuxt Modules Readme not found対応中かも @harlan-zw が 1 日前に担当しました。 オープンbug harlan-agent-ready-to-implement
難易度 3/5 半日 初心者へのやさしさ 40/100
メンテナーはふだん 1 日以内に返信
-
harlan-agent-ready-to-spec
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
メンテナーはふだん 1 日以内に返信
-
harlan-agent-wait-to-implement
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
メンテナーはふだん 1 日以内に返信
-
Loading 3rd party scripts for unused widget再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンharlan-agent-wait-to-implement
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
メンテナーはふだん 1 日以内に返信
-
harlan-agent-wait-to-implement
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
nuxt/scripts#881 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
bug priority: low role: BE stage: now
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
ahmadrosid/nakama#2594 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
milind-soni/OpenMausBot#6495 ·
メンテナーはふだん 1 日以内に返信
-
Navigating the session tree adds the branch's prompts to Up-arrow history again対応中かも @acmerfight が今日担当しました。 オープンuntriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
earendil-works/pi#12279 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
approved documentation
難易度 1/5 1時間未満 初心者へのやさしさ 89/100
vitest-dev/vitest#12015 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信