Deployment issue with node version in Gatsby starter
{ "private": true,
"name": "blog-with-gatsby-web",
"engines": { "node": ">=18.0.0"
},
"author": "Sanity <<mailto:hello@sanity.io|hello@sanity.io>>","scripts": { "build": "gatsby build",
"clean-cache": "gatsby clean",
"dev": "gatsby develop",
"format": "prettier-eslint --write \"**/*.js\" \"!.cache/**\" \"!node_modules/**\" \"!public/**\"","test": "echo \"Write tests! -> <https://gatsby.app/unit-testing>\""},
"devDependencies": { "autoprefixer": "^10.4.13",
"dotenv": "^16.0.0",
"gatsby-plugin-postcss": "^5.25.0",
"lint-staged": "^12.3.5",
"postcss": "^8.4.20",
"postcss-preset-env": "^7.3.1",
"prettier": "2.5.1",
"tailwindcss": "^3.2.4"
},
"dependencies": { "@babel/eslint-parser": "^7.19.1",
"@portabletext/react": "^1.0.1",
"@sanity/image-url": "^1.0.1",
"date-fns": "^2.28.0",
"fix": "^0.0.6",
"gatsby": "^5.3.3",
"gatsby-plugin-image": "^3.3.2",
"gatsby-plugin-manifest": "^5.3.1",
"gatsby-plugin-react-helmet": "^5.6.0",
"gatsby-plugin-sharp": "^5.3.2",
"gatsby-source-filesystem": "^5.3.1",
"gatsby-source-sanity": "^7.3.2",
"gatsby-transformer-sharp": "^5.3.1",
"latest": "^0.2.0",
"npm5": "^5.0.0-beta.69",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-helmet": "^6.1.0"
}
}
node -vin your terminal, please?
go into your project and check there as well i would recommend
😉And then you can follow this instruction (
https://www.gatsbyjs.com/docs/upgrading-node-js/ )
🤓)
Was this answer helpful?
Sanity – Build the way you think, not the way your CMS thinks
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.