- Do you want to request a _feature_ or report a _bug_?
Bug
- What is the current behavior?
netlify link with a fresh CLI install returns Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /usr/local/lib/node_modules/netlify-cli/node_modules/is-promise/index.js
require() of ES modules is not supported.
- If the current behavior is a bug, please provide the steps to reproduce.
npm install netlify-cli -gnetlify link- Local Environment Information
Related
% netlify -v
netlify-cli/2.48.0 darwin-x64 node-v12.16.2
Oh oh oh @RaeesBhatti , that might be related to the great 2020 is-promise one-line-of-code disaster that broke many npm modules: https://medium.com/javascript-in-plain-english/is-promise-post-mortem-cab807f18dcc
[email protected] /home/ether/netlify/cli
โโโฌ [email protected]
โ โโโ [email protected]
โโโฌ [email protected]
โ โโโฌ [email protected]
โ โโโ [email protected] deduped
โโโฌ [email protected]
โโโฌ [email protected]
โโโ [email protected] deduped
I tried reinstalling as suggested in #863, but it's still caught up on the bad version.
Okay, I got it to work by running:
$ brew uninstall netlify-cli
Uninstalling /usr/local/Cellar/netlify-cli/2.48.0... (16,459 files, 153.0MB)
$ brew install -s netlify-cli
โฆ
I think there should still be a new version pushed to Homebrew so that this is not necessary.
Is this still a problem? I haven't been able to reproduce it recently.
@kaganjd Can you please provide an update on whether this is still a problem!
Hey @RaeesBhatti, I haven't heard anything in response from the person who wrote into Community