{"record":{"id":"538be2bf17074dce","repo":"Kong/insomnia","slug":"yarn-standalone-js-is-a-symlink-refusing-to-use-i","errorCode":null,"errorMessage":"yarn-standalone.js is a symlink, refusing to use it.","messagePattern":"yarn-standalone\\.js is a symlink, refusing to use it\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/insomnia/src/main/install-plugin.ts","lineNumber":342,"sourceCode":"  // Validate app path is safe\n  if (!resolvedAppPath.startsWith(SAFE_APP_BASE)) {\n    throw new Error('Unsafe app path detected.');\n  }\n\n  const yarnPath = isDevelopment()\n    ? path.resolve(resolvedAppPath, './bin/yarn-standalone.js')\n    : path.resolve(resolvedAppPath, '../bin/yarn-standalone.js');\n\n  if (!yarnPath.startsWith(SAFE_APP_BASE)) {\n    throw new Error('Unsafe yarn path detected.');\n  }\n\n  // Ensure file exists and is not a symlink\n  try {\n    const stats = await lstat(yarnPath);\n\n    if (stats.isSymbolicLink()) {\n      throw new Error('yarn-standalone.js is a symlink, refusing to use it.');\n    }\n  } catch (err: any) {\n    if (err.code === 'ENOENT') {\n      throw new Error(`yarn-standalone.js not found at expected location: ${yarnPath}`);\n    }\n    throw err;\n  }\n\n  return yarnPath;\n}\n\n/**\n * Checks if the Yarn stderr output only contains deprecation warnings.\n */\nexport function containsOnlyDeprecationWarnings(output: string): boolean {\n  const MAX_LINES = 20;\n  const MAX_LINE_LENGTH = 300;\n","sourceCodeStart":324,"sourceCodeEnd":360,"githubUrl":"https://github.com/Kong/insomnia/blob/d9bb2b0142600f21309832daea3317942d285984/packages/insomnia/src/main/install-plugin.ts#L324-L360","documentation":"Error \"yarn-standalone.js is a symlink, refusing to use it.\" thrown in Kong/insomnia.","triggerScenarios":"Thrown at packages/insomnia/src/main/install-plugin.ts:342 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":"d9bb2b0142600f21309832daea3317942d285984","analyzedAt":"2026-08-26T18:04:05.187Z","schemaVersion":2},"datasetVersion":"2026-08-26T21:11:00.512Z"}