Hello someone help me with this my Gatsby site has been running okay for a while but now I’m getting issues I can’t build & deploy locally also on Github below is the error I’m getting when running “Netlify Build” locally & Also “Gatsby Build” on Netlify.
gatsby build
Build a Gatsby project.
Options:
–verbose Turn on verbose output [boolean] [default: false]
–no-color, --no-colors Turn off the color in output [boolean] [default: false]
–json Turn on the JSON logger [boolean] [default: false]
–prefix-paths Build site with link paths prefixed with the pathPrefix value in gatsby-config.js. Default is env.PREFIX_PATHS
or false. [boolean] [default: false]
–no-uglify Build site without uglifying JS bundles (for debugging). [boolean] [default: false]
–profile Build site with react profiling (this can add some additional overhead). See https://reactjs.org/docs/profiler
[boolean] [default: false]
–graphql-tracing Trace every graphql resolver, may have performance implications [boolean] [default: false]
–open-tracing-config-file Tracer configuration file (OpenTracing compatible). See Performance Tracing | Gatsby [string]
-h, --help Show help [boolean]
-v, --version Show the version of the Gatsby CLI and the Gatsby package in the current project [boolean]
ERROR
gatsby can only be run for a gatsby site.
Either the current working directory does not contain a valid package.json or ‘gatsby’ is not specified as a dependency