netlify/cli

Installing 17.19.3 fails on `read-pkg-up`

Closed this issue · 0 comments

Describe the bug

yarn add netlify-cli@17.19.2 works while yarn add netlify-cli@17.19.3 fails

import { readPackageUp } from 'read-pkg-up';
         ^^^^^^^^^^^^^
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:

import pkg from 'read-pkg-up';
const { readPackageUp } = pkg;

    at ModuleJob._instantiate (node:internal/modules/esm/module_job:132:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:214:5)
    at async ModuleLoader.import (node:internal/modules/esm/loader:329:24)
    at async loadESM (node:internal/process/esm_loader:34:7)
    at async handleMainPromise (node:internal/modules/run_main:113:12)

Node.js v20.10.0

Steps to reproduce

yarn add netlify-cli@17.19.3

Configuration

No response

Environment

sh: 1: envinfo: Permission denied