How to update Bun itself
This article explains how to update Bun, an all-in-one tool that can run, build, and test JavaScript and TypeScript.
This article does not explain how to update project dependencies using Bun, but instead explains how to update Bun itself.
How to update Bun
To update Bun, run the following command in the environment where Bun is installed.
bun upgradeIf a newer version of Bun than the one currently installed is available, it will be updated to the latest version.
If the update fails for some reason, you can update to the latest version of Bun by running the installation command listed on the official Bun website.
When updating using this method, you do not need to uninstall Bun; simply running the installation command will update it to the latest version.
The command to install Bun on Windows is introduced in the following article.

Conclusion
This article explained how to update Bun itself to the latest version, rather than updating dependencies.
If the update fails for some reason, you can update it by running Bun’s installation command.
Share this article
Follow us for updates
Adding us to your preferred sources on Google makes it easier to find our articles on Google. Also, be sure to follow us on X and our RSS feed.
Next articles
- How to install Bun on Windows
- X web app get much faster as migration to TanStack Router and Tailwind begins
- X’s web app will get faster. Head of product says load times will drop by 90%
- Why some websites show “polyfill.io requires a username and password,” and what to do: do not enter any information
- X removes Dim theme from web. How to get it back with an extension?
-1.png&w=1080&q=75)
I've been using JavaScript more than my native language since birth. I am nowhere and everywhere on the internet.
I build web apps and browser extensions in TypeScript as a web frontend programmer. I released Shadowban Scanner, a tool that detects shadowbans on X, and Restore Link Card, a tool that brings back link cards. Media outlets in Japan and abroad covered both tools. For iGEM 2023, I built the Wiki for Team Japan-United and helped the team win the Grand Prize. On my blog, I cover news about X and social media, test and troubleshoot bugs, and share frontend development insights.








![[新しいXチャットへようこそ]というテキストが画面に大きく表示されており、その下には次の3つの説明が表示されている。[エンドツーエンドの暗号化:メッセージは、端末にかかわらずエンドツーエンドで暗号化されています。][最先端のプライバシー:Xを含め、他の人がメッセージを読むことはできません。][パスコードを設定:メッセージを保護するため、4桁のパスコードを設定してください。]これらの説明の下には、[パスコードを作成]という大きなボタンが配置されている](/_next/image/?url=%2Fapi%2Fmedia%2Ffile%2Fwelcome-to-new-chat.png&w=1920&q=75)

![[Search Engine Selector]というアプリからの通知のスクリーンショット。[ブラウザと検索サービスを選択]というタイトルで、本文には[ウェブページを表示しリンクを開くアプリと、検索サービスアプリを選択してください]と書かれている。通知の下部には[アプリを選択してください]というボタンが表示されている](/_next/image/?url=%2Fapi%2Fmedia%2Ffile%2Fandroid-search-engine-selector-notification.png&w=3840&q=75)

