-
Notifications
You must be signed in to change notification settings - Fork 78
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
Comments
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. |
@yaniv3109 could you try uninstalling and re-installing (from the json info it seems you are using the Windows installer?) |
Hi, |
Ok, I got a windows machine so I'll give it a try tomorrow. |
This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted. |
I've tried install from npm using node v22.12.0 and don't get the 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 these folders keep some update files that the sf entrypoint might be sourcing. |
(Reproducible outside of Windows Sandbox too) |
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)"
]
}
The text was updated successfully, but these errors were encountered: