{"record":{"id":"59e40187a0f97467","repo":"gatsbyjs/gatsby","slug":"the-netlify-cms-package-is-deprecated-please-inst","errorCode":null,"errorMessage":"The netlify-cms package is deprecated, please install netlify-cms-app instead. You can do this by running \"npm install netlify-cms-app\"","messagePattern":"The netlify-cms package is deprecated, please install netlify-cms-app instead\\. You can do this by running \"npm install netlify-cms-app\"","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"deprecated-packages/gatsby-plugin-netlify-cms/src/gatsby-node.js","lineNumber":57,"sourceCode":"    value.type === `javascript/auto` &&\n    value.use &&\n    value.use[0] &&\n    value.use[0].options &&\n    value.use[0].options.presets &&\n    /babel-preset-gatsby[/\\\\]dependencies\\.js/.test(\n      value.use[0].options.presets\n    )\n  ) {\n    return null\n  }\n\n  return value\n}\n\nexports.onPreInit = ({ reporter }) => {\n  try {\n    require.resolve(`netlify-cms`)\n    reporter.warn(\n      `The netlify-cms package is deprecated, please install netlify-cms-app instead. You can do this by running \"npm install netlify-cms-app\"`\n    )\n  } catch (err) {\n    // carry on\n  }\n}\n\nexports.onCreateDevServer = ({ app, store }, { publicPath = `admin` }) => {\n  const { program } = store.getState()\n  const publicPathClean = trim(publicPath, `/`)\n  app.get(`/${publicPathClean}`, function (req, res) {\n    res.sendFile(\n      path.join(program.directory, `public`, publicPathClean, `index.html`),\n      err => {\n        if (err) {\n          res.status(500).end(err.message)\n        }\n      }","sourceCodeStart":39,"sourceCodeEnd":75,"githubUrl":"https://github.com/gatsbyjs/gatsby/blob/e85d62f1779e353eaac1753211629a26d123e26c/deprecated-packages/gatsby-plugin-netlify-cms/src/gatsby-node.js#L39-L75","documentation":"onPreInit deprecation notice from gatsby-plugin-netlify-cms: require.resolve succeeded for the monolithic netlify-cms package, which is deprecated in favour of netlify-cms-app that the plugin actually integrates with.","triggerScenarios":"Thrown at deprecated-packages/gatsby-plugin-netlify-cms/src/gatsby-node.js:57 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run `npm install netlify-cms-app`","Remove the deprecated netlify-cms dependency"],"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"}