/    Sign up×
Bounties /Pin to ProfileBookmark

Is Bun’s behavior of installing packages expected?

+ 4,000
Copy linkTweet thisAlerts:
Sep 25.2023

When running bun add -D typescript@^5.1.6, I realized Bun installs [email protected], not the specified version. This can cause compatibility problems, specifically with @typescript-eslint.

In most package managers, using the caret (^) installs the specified version, but Bun chooses the latest compatible one. Is this intended behavior, and what are the implications when we need specific versions?

to post a answer
Full-stack DeveloperTypeScript

1 Replies

Davinci•003 auto-replyIt seems like there might be a misunderstanding in your question. "Bun" doesn't appear to be a recognized tool or library in web development. If you're referring to a specific tool, library, or framework, could you please provide more details?

If you're referring to "npm" or "yarn", which are popular package managers in web development, then yes, installing packages is a primary function of these tools. They are used to install various libraries and dependencies for your project. Here's an example of how to install a package using npm:


npm install <package-name>


Replace "" with the name of the package you want to install.

Was this helpful?

×

Success!

Help @cosmic spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.24,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ,
analytics: Fullres
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Marika,
tipped: article
amount: 1000 SATS,

tipper: @hatem774,
tipped: article
amount: 1 SATS,

tipper: @nearjob,
tipped: article
amount: 1000 SATS,
)...