-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
punycode module deprecated message #6689
Comments
As a workaround you can use |
Output of the
|
Hi there, Thank you for your report! I was able to reproduce this issue, and I have flagged this to our engineering team. If you wish to add any further information/screenshots/recordings etc., please feel free to do so at any time - our engineering team will be happy to review these. Thanks once again! |
Downgrade node to 20.9.0 version! |
solution that worked for me: and then in node_modules go to the directory tr46 > index.js // Replace this: basically just add a trailing forward slash |
Temporary fix im using:
or add as an env var. If you add the env var this will suppress all other depreciation warnings as well. Should probably be removed once this has been fixed. |
Where did you put that exactly? |
You can either:
|
I didn't want to set # Temp workaround to disable punycode deprecation logging to stderr
# https://github.com/bitwarden/clients/issues/6689
alias bw='NODE_OPTIONS="--no-deprecation" bw' |
Can we please get some love on this?? |
Hi everyone, This seems to be caused by a transient dependency of In the meanwhile you can avoid the error by using the distributed version of the CLI from our website, by downgrading node or by passing in the |
Not that it is needed, as it has been confirmed by several, but here is another one with the issue on macOS 14.3.1 running Node v21.6.2. For the time being, I have added an alias per @kschat suggestion, which solves it for me until it has been resolved upstream. |
The easiest way to do this is: |
Hello, Could you please explain in detail this part 'and then in node_modules go to the directory tr46 > index.js' ? Thanks. |
To keep the latest version and remove the error messasge, find your installation of
then go there and up a few directories till you get to the directory with
to install the "userland" version of punycode.
to find all the sub-dependencies which require punycode. As @maion308 suggested, making these
calls the right version. In this latest version ( 2024.6.0 ) I had to change a few subdependencies until the error went away. Notably I think it's still the |
Hello, for me it was file Also changed:
Thanks! |
This just started occurring for me. bw cli: 2024.6.0 |
I'm also having this issue bw cli: 2024.6.1 |
Result from the
The master password is 100% correct. I've copied and pasted it to avoid typos. Do you have any ideas on when it will be solved? 🙄 |
For me it was editing 4 files to get rid of that warning:
Replace all those with |
It's almost 1 year after the first acknowledgement of this issue and there's still no official solution. What's the current status, is there any intentions of fixing it or giving a reasonable timeline? @sammbw |
@rojosinalma As @Hinton has previously mentioned this is an upstream issue:
|
BitWarden, if you're not interested enough in resolving this properly[1], and it's otherwise harmless, and one recommended workaround includes passing the For example: @@ -1,4 +1,4 @@
-#!/usr/local/opt/node/bin/node
+#!/usr/bin/env NODE_OPTIONS=--no-deprecation /usr/local/opt/node/bin/node You can then revert this once [1] Eg: chasing this up with |
I scrupulously followed the instructions provided by @ckujau and @Servinjesus1. Now I no longer have the warnings of depreciation of the 'punycode' module |
For everyone tracking this: Looks like this has been resolved in jsdom/jsdom#3776, included in v 25.01 release as of 2024-09-22. Since then, you might notice above here BW's upgraded to v25 in #10742, merged to main 3 days ago & included in the browser & web version 2024.10.0 releases. No matching CLI release yet though. |
New CLI version released today (updated with brew on my device), but still having this issue:
|
I still get the same deprecation warning even when I built bitwarden cli from source at the latest commit on main. |
Did some cursory digging, looks like this is still upstream—this time with Running bw w/ deprecation tracing outputs the following:
Per
|
Should this issue be reopened, or is it better if I file a new issue for this new cause? |
Thank you @andrew-chang-dewitt for the investigation and identifying another upstream issue. I'll go ahead and re-open this. |
Just in case anyone else is looking at resolving this w/ a PR like I was, it seems like the following issues could be blocking a resolution:
|
Its work for me! 🚀 |
Steps To Reproduce
from terminal on macOS, run any
bw
command:bw --version
Expected Result
should only provide the version:
2023.9.1
Actual Result
shows a deprecation warning for punycode in node:
(node:2299) [DEP0040] DeprecationWarning: The
punycode
module is deprecated. Please use a userland alternative instead.(Use
node --trace-deprecation ...
to show where the warning was created)2023.9.1
Screenshots or Videos
❯ bw --version
(node:2299) [DEP0040] DeprecationWarning: The
punycode
module is deprecated. Please use a userland alternative instead.(Use
node --trace-deprecation ...
to show where the warning was created)2023.9.1
Additional Context
No response
Operating System
macOS
Operating System Version
14.0 (23A344)
Shell
Zsh
Build Version
2023.9.1
Issue Tracking Info
The text was updated successfully, but these errors were encountered: