mkdirp 1.0.0 patched a vulnerability issue described here https://github.com/getsentry/sentry-cli/pull/685 and it's no longer supported by the author:
Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
See: https://www.npmjs.com/package/mkdirp/v/0.5.4
If you still want to use old version, you can use yarn and force the oldmkdirp version 0.5.4 using selective version resolution - https://classic.yarnpkg.com/en/docs/selective-version-resolutions/
Sentry-cli currently declares that it supports Node.js 8.x though:
I think that a better approach would be to downgrade the dependency to ^0.5.4 for the 1.x release line, since upgrading to 1.x is a breaking change (since it drops support for Node.js 8)
Fair enough. Patched here https://github.com/getsentry/sentry-cli/pull/699 and created a separate issue to keep track of it.
How about using make-dir
@aaharu starting node 10, we can just use mkdirSync('', { recursive: true });