{"record":{"id":"8b143380ea43e07e","repo":"gatsbyjs/gatsby","slug":"installation-of-dependencies-after-initial-scan-is","errorCode":null,"errorMessage":"Installation of dependencies after initial scan is not implemented","messagePattern":"Installation of dependencies after initial scan is not implemented","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/gatsby-dev-cli/src/utils/check-deps-changes.js","lineNumber":170,"sourceCode":"        } else if (monorepoPKGjson.dependencies[key]) {\n          acc.push(` - '${key}@${monorepoPKGjson.dependencies[key]}' was added`)\n          needPublishing = true\n        } else {\n          acc.push(` - '${key}@${localPKGjson.dependencies[key]}' was removed`)\n          // this doesn't need publishing really, so will skip this\n        }\n        return acc\n      }, [])\n      .join(`\\n`)\n\n    if (!isPublishing && depChangeLog.length > 0) {\n      console.log(`Dependencies of '${packageName}' changed:\\n${depChangeLog}`)\n      if (isInitialScan) {\n        console.log(\n          `Will ${!needPublishing ? `not ` : ``}publish to local npm registry.`\n        )\n      } else {\n        console.warn(\n          `Installation of dependencies after initial scan is not implemented`\n        )\n      }\n      return {\n        didDepsChanged: needPublishing,\n        packageNotInstalled,\n      }\n    }\n  }\n  return {\n    didDepsChanged: false,\n    packageNotInstalled,\n  }\n}\n\nfunction getPackageVersion(packageName) {\n  const projectPackageJson = JSON.parse(\n    fs.readFileSync(`./package.json`, `utf-8`)","sourceCodeStart":152,"sourceCodeEnd":188,"githubUrl":"https://github.com/gatsbyjs/gatsby/blob/e85d62f1779e353eaac1753211629a26d123e26c/packages/gatsby-dev-cli/src/utils/check-deps-changes.js#L152-L188","documentation":"gatsby-dev-cli watch scan: dependencies of a watched package changed (added/removed) after the initial scan, and installing new dependencies mid-watch is not implemented — the change log is printed but nothing is installed.","triggerScenarios":"Thrown at packages/gatsby-dev-cli/src/utils/check-deps-changes.js:170 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Manually install the newly added dependency in the consuming site","Restart the gatsby-dev watch process to pick up dependency changes"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e85d62f1779e353eaac1753211629a26d123e26c","analyzedAt":"2026-08-26T17:50:09.662Z","contentChangedAt":"2026-08-26T17:50:09.662Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}