Unable to install netlify-cli as dev dependency


I’m currently unable to install netlify-cli ^17.20.1 as a dev dependency using yarn 4.1.0 and node 20.11.0 (have also tried other versions of node including latest). I have tried removing node_modules, lock file and clearing yarn cache.

Error message is below:
SyntaxError: Named export ‘readPackageUp’ not found. The requested module ‘read-pkg-up’ is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:…

Any help greatly appreciated!

I believe the CLI has received some updates after that. Are you still running into issues?