Bun is a JavaScript runtime with a native bundler, transpiler, task runner and npm client built-in.
Questions tagged [bun]
52 questions
0
votes
1 answer
bun.js not working until running of subsequent scripts
after installing the bun framework I'm prompted to run the following two commands.
Manually add the directory to your $HOME/.zshrc (or similar)
export BUN_INSTALL="/Users/foo/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
after I run these in my…

Ben Shekhtman
- 385
- 5
- 15
0
votes
1 answer
how can i use axios or any others packages in react app which is created by bun cli?
I am trying to use Axios in react app which uses bun as a runtime, this app is created by bun cli,
and I am getting this error also app showing nothing.
node_modules.c87bb419727a84b2.bun:7 Uncaught TypeError: Cannot read properties of null (reading…

rashed01
- 1
- 1
0
votes
1 answer
Is Bun really ~3 times faster than nodejs?
I was looking at Bun Official Site there i noticed that they are claiming, bun is nearly 3 times faster than nodejs.
Is it really true or it is just a marketing strategy to promote bun over nodeJS?
Please let me know your thoughts.

nitin737
- 39
- 8
0
votes
1 answer
How to run React js or Node js (server script) with bun runtime
when i am trying to give this command
Node js
$bun App.js
error: Cannot find module "./util.inspect" from "/Users/rehan/taptechinc/server/node_modules/object-inspect/index.js"
React js
what command can i write ?

Muhammad Rehan
- 11
- 3
0
votes
0 answers
bun is installed, but its commands don't working
When I trying to create a project or run a file or any command, nothing happens. just --version is working :(
How to fix this

Aidin53
- 531
- 4
- 9
-1
votes
1 answer
Multiple Errors when Running Bun via WSL
I am trying to install some packages using Bun, but I am running into trouble:
$ bun install
error: Failed to initialize network thread: SystemOutdated.
HTTP requests will not work. Please file an issue and run strace().
Is there any known fix to…

sno2
- 3,274
- 11
- 37
-2
votes
1 answer
Removing items from front of Array without using shift()
We know that Array.prototype.shift()/Array.prototype.unshift() are CPU intensive because they update all indices in an array. I want create a basic queue, and update an index.
class MyQueue {
vals = [1,2,3];
indexOfFirst = 0;
shift(){
const…

Alexander Mills
- 90,741
- 139
- 482
- 817