hasura / gatsby-gitbook-starter

Generate GitBook style modern docs/tutorial websites using Gatsby + MDX
https://hasura.io/learn/graphql/react/introduction/
MIT License
980 stars 383 forks source link

node: --openssl-legacy-provider is not allowed in NODE_OPTIONS #197

Open joshuacheong opened 1 year ago

joshuacheong commented 1 year ago

I am facing this issue. Any ideas to resolve will be appreciated. `$ npm start

gatsby-gitbook-boilerplate@0.0.1 start NODE_OPTIONS=--openssl-legacy-provider gatsby develop

node: --openssl-legacy-provider is not allowed in NODE_OPTIONS`

ajrequenez commented 1 year ago

I ran into the same issue. After i updated all my dependencies I think that option is no longer needed. Try running gatsby directly with npx gatsby develop. This worked for me so I removed that option from the npm start script and it's working fine for me now.

Hope this helps

melonicedlatte commented 1 year ago

In my case, i change package.json file. I delete NODE_OPTIONS=--openssl-legacy-provider option.

joshuacheong commented 1 year ago

Ok let me try that and see if it works. Will let you know.