How to install Bun.js v0.1.13

Photo by Joan Gamell on Unsplash

How to install Bun.js v0.1.13

ยท

2 min read

What is bun? ๐Ÿค”

Bun is defined as a 'fast all-in-one JavaScript runtime' It is the third of its kind after Node.js and Deno.js, created by Jarred Sumner using the Zig programming language. Its major aim is to provide a platform for running JavaScript outside the browser just like Node.js and Deno.js, but Bun advances to provide new levels of speed and enhanced complexity.

How to install ๐Ÿ’ป

On Linux ๐Ÿง or macOS ๐Ÿ’ป , run curl https://bun.sh/install | bash but on Windows , its a different story! ๐Ÿ˜ž

You will need WSL (or Windows Subsystem for Linux) to do this, If you already have WSL, you can skip this and run curl https://bun.sh/install | bash

Installing WSL

So, ever since WSL2 was released, they made it even easier to install!๐Ÿ˜€ First, open terminal

image.png

Click open, after so you will see a screen like this:

image.png

Mine looks a bit different but dont worry, just type wsl --install

image.png

When done, click the enter key on your keyboard and complete the installation process. When done and Ubuntu Terminal is opened (if not search Ubuntu in Start)

image.png

Type in the Ubuntu terminal:

sudo apt-get install zip

When done, run curl https://bun.sh/install | bash and bun is installed! ๐ŸŽ‰

To check your installation, type: bun in the terminal and something should say

# bun was installed successfully to ~/.bun/bin/bun

If it says so, then you have installed bun! ๐ŸŽ‰ MuppetFamilyChristmasMuppetsGIF.gif

ย