將所有依賴項更新至最新版本,該版本與 package.json
中指定的版本範圍相容
bun update
--force
別名 — -f
預設情況下,Bun 會遵循在 package.json
中定義的版本範圍。若要略過此設定並更新至最新版本,你可以傳入 force
旗標。
bun update --force
簡介
Bun 是什麼?
安裝
快速入門
TypeScript
範本
bun init
bun create
執行時間
bun run
File types
TypeScript
JSX
Environment variables
Bun APIs
Web APIs
Node.js compatibility
Single-file executable
Plugins
Watch mode
Module resolution
Auto-install
bunfig.toml
Debugger
架構 API即將推出
套件管理員
bun install
bun add
bun remove
bun update
bun link
bun pm
Global cache
Workspaces
Lifecycle scripts
Filter
Lockfile
Scopes and registries
Overrides and resolutions
打包器
Bun.build
載入器
外掛
巨集
vs esbuild
測試執行器
bun test
Writing tests
Watch mode
Lifecycle hooks
Mocks
Snapshots
Dates and times
DOM testing
Code coverage
套件執行器
bunx
API
HTTP server
WebSockets
Workers
Binary data
Streams
File I/O
import.meta
SQLite
FileSystemRouter
TCP sockets
TCP sockets
Globals
$ Shell
Child processes
Transpiler
Hashing
Console
FFI
HTMLRewriter
Testing
Utils
Node-API
Glob
Semver
專案
路線圖
效能測試
貢獻
Windows 編譯
授權
搜尋文件...
/
簡介
Bun 是什麼?
安裝
快速入門
TypeScript
範本
bun init
bun create
執行時間
bun run
File types
TypeScript
JSX
Environment variables
Bun APIs
Web APIs
Node.js compatibility
Single-file executable
Plugins
Watch mode
Module resolution
Auto-install
bunfig.toml
Debugger
架構 API即將推出
套件管理員
bun install
bun add
bun remove
bun update
bun link
bun pm
Global cache
Workspaces
Lifecycle scripts
Filter
Lockfile
Scopes and registries
Overrides and resolutions
打包器
Bun.build
載入器
外掛
巨集
vs esbuild
測試執行器
bun test
Writing tests
Watch mode
Lifecycle hooks
Mocks
Snapshots
Dates and times
DOM testing
Code coverage
套件執行器
bunx
API
HTTP server
WebSockets
Workers
Binary data
Streams
File I/O
import.meta
SQLite
FileSystemRouter
TCP sockets
TCP sockets
Globals
$ Shell
Child processes
Transpiler
Hashing
Console
FFI
HTMLRewriter
Testing
Utils
Node-API
Glob
Semver
專案
路線圖
基準測試
貢獻
建立 Windows
授權
bun update
將所有依賴項更新至最新版本,該版本與 package.json
中指定的版本範圍相容
bun update
--force
別名 — -f
預設情況下,Bun 會遵循在 package.json
中定義的版本範圍。若要略過此設定並更新至最新版本,你可以傳入 force
旗標。
bun update --force