Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Salesforce CLI outputs "(node:19552) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead." after every sf command #3161

Open
yaniv3109 opened this issue Dec 26, 2024 · 7 comments
Labels
more information required Issue requires more information or a response from the customer validated Version information for this issue has been validated

Comments

@yaniv3109
Copy link

Note
Before you submit your issue, make sure that:

  • You're using the latest version of Salesforce CLI.
  • You've searched both open and closed issues for related posts.
  • You've used the doctor command to diagnose common issues.
  • You understand that GitHub Issues don't adhere to any agreement or SLA.
    • If you require immediate assistance, use official channels such as Salesforce Customer Support.

Summary

There is a task #2535 with the same issue that was closed 2 months ago. I wasn't sure if it was possible to reopen a closed task.

Anyway, after upgrading to the new version:
@salesforce/cli/2.70.7 win32-x64 node-v22.11.0
I get the message in the topic for every sf command I run.

I also tried downgrading to version 2.69.14 and still the same error.

Steps To Reproduce

Run sf command

System Information

Which shell or terminal are you using? powershell, python

(node:11920) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)
{
"architecture": "win32-x64",
"cliVersion": "@salesforce/cli/2.69.14",
"nodeVersion": "node-v22.11.0",
"osVersion": "Windows_NT 10.0.19045",
"rootPath": "C:\Program Files\sf\client",
"shell": "cmd.exe",
"pluginVersions": [
"@oclif/plugin-autocomplete 3.2.11 (core)",
"@oclif/plugin-commands 4.1.12 (core)",
"@oclif/plugin-help 6.2.18 (core)",
"@oclif/plugin-not-found 3.2.29 (core)",
"@oclif/plugin-plugins 5.4.19 (core)",
"@oclif/plugin-search 1.2.16 (core)",
"@oclif/plugin-update 4.6.14 (core)",
"@oclif/plugin-version 2.2.16 (core)",
"@oclif/plugin-warn-if-update-available 3.1.24 (core)",
"@oclif/plugin-which 3.2.19 (core)",
"@salesforce/cli 2.69.14 (core)",
"apex 3.6.6 (core)",
"api 1.3.2 (core)",
"auth 3.6.78 (core)",
"data 3.12.3 (core)",
"deploy-retrieve 3.15.17 (core)",
"info 3.4.25 (core)",
"limits 3.3.42 (core)",
"marketplace 1.3.7 (core)",
"org 5.2.7 (core)",
"packaging 2.9.5 (core)",
"schema 3.3.43 (core)",
"settings 2.4.8 (core)",
"sobject 1.4.46 (core)",
"telemetry 3.6.26 (core)",
"templates 56.3.33 (core)",
"trust 3.7.45 (core)",
"user 3.6.4 (core)"
]
}

@yaniv3109 yaniv3109 added the investigating We're actively investigating this issue label Dec 26, 2024
Copy link

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

@github-actions github-actions bot added the validated Version information for this issue has been validated label Dec 26, 2024
@cristiand391
Copy link
Member

@yaniv3109 could you try uninstalling and re-installing (from the json info it seems you are using the Windows installer?)
I wonder if it's related to scripts that launch sf after an update via sf update.

@cristiand391 cristiand391 added the more information required Issue requires more information or a response from the customer label Jan 6, 2025
@yaniv3109
Copy link
Author

Hi,
I tried doing this, it didn't help.
I also installed the version that was written for which the issue was resolved 2.69.14.

@cristiand391
Copy link
Member

Ok, I got a windows machine so I'll give it a try tomorrow.

Copy link

This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted.

@github-actions github-actions bot added the stale label Jan 14, 2025
@cristiand391 cristiand391 removed more information required Issue requires more information or a response from the customer stale labels Jan 14, 2025
@cristiand391
Copy link
Member

I've tried install from npm using node v22.12.0 and don't get the warning.
Installed latest stable (v2.71.6) using the windows installer, no warning.
Updated to stable-rc via sf update stable-rc, still no warning.

I've looked at all the sf entrypoints for these 3 cases and can't see how it would get into a path where the warning shows up.

When you uninstalled the CLI, did you remove the files under LOCALAPPDATA like mentioned here:
https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_uninstall.htm

these folders keep some update files that the sf entrypoint might be sourcing.

@cristiand391 cristiand391 added more information required Issue requires more information or a response from the customer and removed investigating We're actively investigating this issue labels Jan 15, 2025
@jeffhube
Copy link

(node:3564) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
You acknowledge and agree that the CLI tool may collect usage information, user environment, and crash reports for the purposes of providing services or functions that are relevant to use of the CLI tool and product improvements.

@salesforce/cli/2.72.21 win32-x64 node-v22.12.0

(Reproducible outside of Windows Sandbox too)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more information required Issue requires more information or a response from the customer validated Version information for this issue has been validated
Projects
None yet
Development

No branches or pull requests

3 participants