{"record":{"id":"c15dd671afbf0954","repo":"vercel/next.js","slug":"failed-to-fetch-latest-canary-version-reason","errorCode":null,"errorMessage":"Failed to fetch latest canary version. (Reason: ${(e as Error).message}.)\nDetected \"${installedRelease}\". Visit https://github.com/vercel/next.js/releases.\nMake sure to try the latest canary version (eg.: `npm install next@canary`) to confirm the issue still exists before creating a new issue.\nLearn more: https://nextjs.org/docs/messages/opening-an-issue","messagePattern":"Failed to fetch latest canary version\\. \\(Reason: (.+?)\\.\\)\nDetected \"(.+?)\"\\. Visit https://github\\.com/vercel/next\\.js/releases\\.\nMake sure to try the latest canary version \\(eg\\.: `npm install next@canary`\\) to confirm the issue still exists before creating a new issue\\.\nLearn more: https://nextjs\\.org/docs/messages/opening-an-issue","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/next/src/cli/next-info.ts","lineNumber":124,"sourceCode":"\n  try {\n    const registry = getRegistry()\n    const res = await fetch(`${registry}-/package/next/dist-tags`)\n    const tags = await res.json()\n\n    versionInfo = parseVersionInfo({\n      installed: installedRelease,\n      latest: tags.latest,\n      canary: tags.canary,\n    })\n\n    title = getStaleness(versionInfo).title\n\n    if (title) {\n      stalenessWithTitle = ` // ${title}`\n    }\n  } catch (e) {\n    console.warn(\n      `${yellow(\n        bold('warn')\n      )}  - Failed to fetch latest canary version. (Reason: ${\n        (e as Error).message\n      }.)\n      Detected \"${installedRelease}\". Visit https://github.com/vercel/next.js/releases.\n      Make sure to try the latest canary version (eg.: \\`npm install next@canary\\`) to confirm the issue still exists before creating a new issue.\n      \\nLearn more: ${cyan(\n        'https://nextjs.org/docs/messages/opening-an-issue'\n      )}`\n    )\n  }\n\n  const cpuCores = os.cpus().length\n  let relevantPackages = `  next: ${installedRelease}${stalenessWithTitle}\n  eslint-config-next: ${getPackageVersion('eslint-config-next')}\n  react: ${getPackageVersion('react')}\n  react-dom: ${getPackageVersion('react-dom')}","sourceCodeStart":106,"sourceCodeEnd":142,"githubUrl":"https://github.com/vercel/next.js/blob/4fed8eaf197aaa60fd85371352482199a4c2107f/packages/next/src/cli/next-info.ts#L106-L142","documentation":"Error \"Failed to fetch latest canary version. (Reason: ${(e as Error).message}.)\nDetected \"${installedRelease}\". Visit https://github.com/vercel/next.js/releases.\nMake sure to try the latest canary version (eg.: `npm install next@canary`) to confirm the issue still exists before creating a new issue.\nLearn more: https://nextjs.org/docs/messages/opening-an-issue\" thrown in vercel/next.js.","triggerScenarios":"Thrown at packages/next/src/cli/next-info.ts:121 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check your network connection so the latest canary version can be fetched.","Install the latest canary manually (`npm install next@canary`) and verify the issue still exists before reporting."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4fed8eaf197aaa60fd85371352482199a4c2107f","analyzedAt":"2026-08-19T02:10:13.922Z","contentChangedAt":"2026-08-19T02:10:13.922Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}