azure-sdk-for-js: @azure/identity package cannot be installed on node v20

  • Package Name: @azure/identity
  • Package Version: 3.3.0
  • Operating system:
  • nodejs
    • version: v20.5.0
  • browser
    • name/version:
  • typescript
    • version:
  • Is the bug related to documentation in

Describe the bug A clear and concise description of what the bug is. @azure/identity relies on @azure/msal-node@^1.17.3. This package has compatibility with node v20 only starting from v2. Thus it has to be updated to the latest in this repo. To Reproduce Steps to reproduce the behavior:

  1. use node v20
  2. try to install the package
  3. Notice the error
npm ERR! code EBADENGINE
npm ERR! engine Unsupported engine
npm ERR! engine Not compatible with your version of node/npm: @azure/msal-node@1.18.1
npm ERR! notsup Not compatible with your version of node/npm: @azure/msal-node@1.18.1
npm ERR! notsup Required: {"node":"10 || 12 || 14 || 16 || 18"}
npm ERR! notsup Actual:   {"npm":"9.8.0","node":"v20.5.0"}

npm ERR! A complete log of this run can be found in: /Users/user/.npm/_logs/2023-08-21T08_08_04_287Z-debug-0.log

Expected behavior A clear and concise description of what you expected to happen.

Should be able to install the package on node@latest Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

About this issue

  • Original URL
  • State: closed
  • Created 10 months ago
  • Reactions: 6
  • Comments: 15 (7 by maintainers)

Most upvoted comments

We’re going to release v4.0.0 for @azure/identity next week, which will have the Node 20 support and Node 16 support will be dropped.

@KarishmaGhiya is there an ETA for the release of this fix?