You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey!
So I really want to use bun, and we're getting tantalisingly close to being able to. All my apps now run with bun, which is mega, however i cannot use bun install. I have to use npm i, then use bun to start it - which is a shame as bun i is much faster.
This appears to be because bun is not honouring peer dependencies in the same way... let me try and explain.
So here it looks like bun is deciding to install v9, but that subsequently conflicts with the peerDependency of v8. However deciding to pick v8 here would satisfy both - which is what npm must be doing.
What is the expected behavior?
I would expect dependencies to be resolved in broadly the same way as npm, to make it feasible to use bun as a replacement for npm.
What do you see instead?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered:
What version of Bun is running?
1.1.38+bf2f153f5
What platform is your computer?
macosx
What steps can reproduce the bug?
Hey!
So I really want to use bun, and we're getting tantalisingly close to being able to. All my apps now run with
bun
, which is mega, however i cannot usebun install
. I have to usenpm i
, then usebun
to start it - which is a shame as bun i is much faster.This appears to be because bun is not honouring peer dependencies in the same way... let me try and explain.
Given this structure:
Where
some-module
has apeerDependency
for, sayeslint@8
. If Ibun i
, then I correctly get eslintv8.However if that peer is 2 deep, and i have another module which also has a peer (albeit looser):
Then it seems to pull in the latest eslint (v9), not the one that satisfies both. You can see it complaining about it during the output of
bun i
:I've attached the output of 2
npm ls --tree
commands, one from the result of the npm install and the other from the result of bun installbun.txt
npm.txt
Looking at the output I see:
If you look at
@typescript-eslint/utils
, their package.json is:So here it looks like bun is deciding to install v9, but that subsequently conflicts with the peerDependency of v8. However deciding to pick v8 here would satisfy both - which is what npm must be doing.
What is the expected behavior?
I would expect dependencies to be resolved in broadly the same way as npm, to make it feasible to use bun as a replacement for npm.
What do you see instead?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: