editmash
editmash copied to clipboard
Listing bun as dependency
There is not a trivial way of counterparting Bun runtime commands to Node/npm only commands.
References:
bun installnpm install --forcecould run, cannot measure how effective it is.npm installby itself fails.
bun run server.ts*npx tsx server.tscould be a replacement, though fails withReferenceError: Bun is not defined. Websocket server hardly depends on Bun's runtime. * The usage ofnpx tsxcould be done withnpm install -g tsxbut installs "tsx" globally.
Setup details
- Tried under Debian Linux 12 with kernel
6.1.0-41-amd64. - Node/npm installed manually through the official website to
/opt/nodejs.
Edit: Stripped off "adding Node/npm equivalents of bun commands" from the issue title, since bun is a deeper dependency than just adding command counterparts.
It needs bun to run
Bun's websocket is faster than node's websocket
It needs bun to run
Yes