denoland/deno · error
URL has no resolvable mirror path: {url}
Error message
URL has no resolvable mirror path: {url} What it means
Error "URL has no resolvable mirror path: {url}" thrown in denoland/deno.
Source
Thrown at cli/tools/installer/npm_compat.rs:1293
{
queue.push_back(child);
}
}
}
Ok(paths)
}
/// Write `bytes` to the local mirror file for `url`, returning the path
/// relative to `.deno/` (suitable for tsconfig `paths`).
fn write_mirror(
remote_root: &Path,
url: &Url,
bytes: &[u8],
type_check_remote: bool,
) -> Result<String, AnyError> {
let local_path = url_to_local_path(remote_root, url)
.ok_or_else(|| anyhow!("URL has no resolvable mirror path: {url}"))?;
if let Some(parent) = local_path.parent() {
std::fs::create_dir_all(parent)?;
}
// Mark mirrored script modules `// @ts-nocheck`. Remote dependencies are not
// the user's code and Deno itself doesn't re-type-check them; without this,
// stock tsc/tsgo would report every type error inside the dependency (which
// dwarfs the project's own diagnostics). `@ts-nocheck` suppresses errors in
// the file while keeping its exported and ambient types available to
// importers, and triple-slash directives (which may follow a leading comment)
// still apply. Skipped under `deno check --all`, which does type-check remote
// modules.
let is_script = matches!(
local_path.extension().and_then(|e| e.to_str()),
Some("ts" | "tsx" | "mts" | "cts" | "js" | "jsx" | "mjs" | "cjs")
);
if is_script && !type_check_remote {
let mut content = Vec::with_capacity(bytes.len() + 16);
content.extend_from_slice(b"// @ts-nocheck\n");View on GitHub (pinned to 89f33cbef2)
When it happens
Trigger: Thrown at cli/tools/installer/npm_compat.rs:1293 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of denoland/deno@89f33cbef2 (2026-08-16).
Data as JSON: /api/errors/a18622ab99746401.
Report an issue: GitHub.