Maybe we could add a section to the README and link to it from the error, so we can provide a more thorough explanation and most importantly we can update whenever needed.
I'd say the availability of fetch is independent of the Node version. fetch is still experimental and it can be disabled with --no-experiemental-fetch. Also Node is not the only place where Octokit is run, I'm not sure if e.g. Electron or React Native have a global fetch method.
Maybe we could add a section to the README and link to it from the error, so we can provide a more thorough explanation and most importantly we can update whenever needed.
I'd say the availability of
fetch
is independent of the Node version.fetch
is still experimental and it can be disabled with--no-experiemental-fetch
. AlsoNode
is not the only place where Octokit is run, I'm not sure if e.g. Electron or React Native have a globalfetch
method.I'd do something like this:
Originally posted by @gr2m in https://github.com/octokit/octokit.js/issues/2486#issuecomment-1633271530