-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Installation fails on Node.js 14 due to obsolete "keytar" dependency #13531
Comments
If |
@octogonz - thank you for the report. Can you confirm that the build fails at this point? The keytar dependency should be optional, and I've seen it report warnings like that but the build still completed successfully. |
NPM returns a nonzero exit code which the build scripts interpret as an error. Also, the log shows node-gyp is a complex development tool meant for package maintainers to use to make prebuilt binaries. It is invoked via "postinstall" only as a last resort when the package maintainers have neglected to provide a binary. In this case maybe because it is an obsolete version of |
To help address #13531, update the keytar dependency to the latest version.
When will PR #13564 be published? |
@octogonz - it should be available now as part of the @azure/identity 1.2.3 release. |
Thanks! |
@azure/identity
Describe the bug
The
@azure/identity
has this problematic dependency:azure-sdk-for-js/sdk/identity/identity/package.json
Lines 97 to 99 in 14ed4e7
To Reproduce
We originally encountered this with the Rush tool, because it recently picked up a dependency on
@azure/identity
. The downstream bug is here: microsoft/rushstack#2467Steps to reproduce the behavior:
Start with a Windows machine that does not have Python or a C++ compiler.
Use nvm-windows to select Node.js 14.15.3 (the current LTS release):
Now try to install Rush:
C:\> npm install --global @microsoft/rush
Expected result: It should install without problems.
Actual result: The installation fails:
Note that even though
@azure/identity
marks this dependency as "optional", the operation still fails:Recommended fix
keytar
by replacing^5.4.0
with^7.3.0
which hopefully ships with Node 14.x-compatible binaries; ORkeytar
and replace it with a different library that is not encumbered bynode-gyp
binary dependenciesThe text was updated successfully, but these errors were encountered: