{"record":{"id":"5dc29828c8a336d4","repo":"denoland/deno","slug":"no-module-url-provided","errorCode":null,"errorMessage":"No module URL provided","messagePattern":"No module URL provided","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/tools/installer/global.rs","lineNumber":346,"sourceCode":"  flags: Arc<Flags>,\n  install_flags_global: InstallFlagsGlobal,\n) -> Result<(), AnyError> {\n  let cwd = resolve_cwd(flags.initial_cwd.as_deref())?;\n  let install_dir =\n    get_installer_bin_dir(&cwd, install_flags_global.root.as_deref())?;\n\n  if let Ok(metadata) = fs::metadata(&install_dir) {\n    if !metadata.is_dir() {\n      return Err(anyhow!(\"Installation path is not a directory\"));\n    }\n  } else {\n    fs::create_dir_all(&install_dir)?;\n  }\n\n  let source_file = install_flags_global\n    .module_urls\n    .first()\n    .ok_or_else(|| anyhow!(\"No module URL provided\"))?\n    .clone();\n\n  // Determine the output path\n  let output = if let Some(ref name) = install_flags_global.name {\n    let mut output_path = install_dir.join(name);\n    if cfg!(windows) {\n      output_path = output_path.with_extension(\"exe\");\n    }\n    output_path.to_string_lossy().into_owned()\n  } else {\n    format!(\"{}/\", install_dir.to_string_lossy())\n  };\n\n  let output_path = PathBuf::from(&output);\n  if output_path.is_file() {\n    if !install_flags_global.force {\n      return Err(anyhow!(\n        \"Existing installation found. Aborting (Use -f to overwrite).\",","sourceCodeStart":328,"sourceCodeEnd":364,"githubUrl":"https://github.com/denoland/deno/blob/89f33cbef296a2b287f323d42de54c871fa69c77/cli/tools/installer/global.rs#L328-L364","documentation":"Error \"No module URL provided\" thrown in denoland/deno.","triggerScenarios":"Thrown at cli/tools/installer/global.rs:346 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"89f33cbef296a2b287f323d42de54c871fa69c77","analyzedAt":"2026-08-16T07:54:21.310Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}