openai-node icon indicating copy to clipboard operation
openai-node copied to clipboard

Error install openai with pnpm

Open rahilvora opened this issue 1 year ago • 3 comments

Confirm this is a Node library issue and not an underlying OpenAI API issue

  • [X] This is an issue with the Node library

Describe the bug

When I am trying to install pnpm install openai, I am getting md5 dependency error when it tries to install digest-fetch dependency

To Reproduce

  1. pnpm install openai

Error

 ERR_PNPM_NO_MATCHING_VERSION  No matching version found for md5@^2.3.0

This error happened while installing the dependencies of [email protected]
 at [email protected]

The latest release of md5 is "2.1.0".

If you need the full list of all 2 published versions run "$ pnpm view md5 versions".

Code snippets

No response

OS

macOS

Node version

20.11.1

Library version

4.30.0

rahilvora avatar Mar 29 '24 19:03 rahilvora

Thanks for the report, we're looking into this. I don't think that dependency is actually used, so if you can find a way to ignore this, you should be fine.

rattrayalex avatar Mar 29 '24 19:03 rattrayalex

We are removing that dependency, and it should be out early next week.

However, note that md5 does indeed have a 2.3.0 package live on npm, so this may have been a transient bug, or a problem with pnpm.

rattrayalex avatar Mar 30 '24 22:03 rattrayalex

Thanks for update @rattrayalex!!. Yes, it does look like an issue with pnpm.

rahilvora avatar Apr 01 '24 17:04 rahilvora