Error in sf package install (ERR_REQUIRE_ESM) #3144
Labels
more information required
Issue requires more information or a response from the customer
validated
Version information for this issue has been validated
Steps
Expected result
package should install
Actual result
(node:23692) [DEP0040] DeprecationWarning: The
punycode
module is deprecated. Please use a userland alternative instead.(Use
node --trace-deprecation ...
to show where the warning was created)Error (ERR_REQUIRE_ESM): require() of ES Module C:\Program Files\sf\client\node_modules\strip-ansi\node_modules\ansi-regex\index.js from C:\Program Files\sf\client\node_modules\strip-ansi\index.js not supported.
Instead change the require of C:\Program Files\sf\client\node_modules\strip-ansi\node_modules\ansi-regex\index.js in C:\Program Files\sf\client\node_modules\strip-ansi\index.js to a dynamic import() which is available in all CommonJS modules.
Additional information
System Information
Diagnostics
✅ pass - salesforcedx plugin isn’t installed
✅ pass - you don't have any linked plugins
✅ pass - [@salesforce/plugin-deploy-retrieve] sourceApiVersion matches apiVersion
✅ pass - [@salesforce/plugin-trust] can ping: https://registry.npmjs.org
✅ pass - [@salesforce/plugin-trust] can ping: https://registry.yarnpkg.com
✅ pass - [@salesforce/plugin-trust] can ping: https://registry.npmjs.org/
✅ pass - using latest or latest-rc CLI version
✅ pass - can access: https://test.salesforce.com
✅ pass - can access: https://appexchange.salesforce.com/services/data
✅ pass - can access: https://developer.salesforce.com/media/salesforce-cli/sf/channels/stable/sf-win32-x64-buildmanifest
✅ pass - [@salesforce/plugin-auth] CLI supports v2 crypto
✅ pass - [@salesforce/plugin-auth] CLI using stable v1 crypto
The text was updated successfully, but these errors were encountered: