Hey guys, I am struggling with an error I’m running into when trying to use the Netlify CLI. I can’t seem to figure what the issues is. Any help or guidance would be greatly appreciated.
Issue is below:
netlify-cli/8.0.11 darwin-x64 node-v14.11.0
Mac OS Big Sur 11.5.2
Installed the netlify-cli, and anytime I try to run ‘netlify login’ to connect to my account I get the following error:
SyntaxError: The requested module ‘micro-api-client’ is expected to be of type CommonJS, which does not support named exports. CommonJS modules can be imported by importing the default export.
For example:
import pkg from ‘micro-api-client’;
const { JSONHTTPError, TextHTTPError } = pkg;
at ModuleJob._instantiate (internal/modules/esm/module_job.js:98:21)
(node:3467) UnhandledPromiseRejectionWarning: file:///Users/mikepalazzo/.nvm/versions/node/v14.11.0/lib/node_modules/netlify-cli/node_modules/netlify/src/methods/response.js:1
import { JSONHTTPError, TextHTTPError } from ‘micro-api-client’
^^^^^^^^^^^^^