DEV Community

Cover image for npm is SLOW! This is better 🍞

npm is SLOW! This is better 🍞

Best Codes on November 24, 2024

Let's face it: we've all waited way too long for npm install to finish. Whether you're racing against a deadline or just impatient (like me), slow ...
Collapse
 
kanonidb profile image
Md. Kanon Biswas

I am use npm. But I do not install npm directly, I am using nvm that handel multiple version of npm. It's so simple to handel multiple project those are build using different version of node without docker container. Now my question is if I have multiple project those are use different version of node then can I handel it with bun?

Collapse
 
best_codes profile image
Best Codes

nvm doesn't make npm any faster (it's just different npm environments) but it is certainly very useful!
When I used npm I used nvm too.
I don't think there is a Bun equivalent (to be clear: nvm is not by npm and does not come with it; it's a third-party thing), though you can globally install bun with npm and use different versions of bun that you have installed in your different npms. (Obviously that's pretty annoying to deal with).

I have seen this, but have not tried it yet:

GitHub logo owenizedd / bum

Bum - Bun Version Manager ⚑

Bum - Bun Version Manager


GitHub CI Status

Introducing Bum, a fast Bun version manager written in Rust from scratch

How to install:

Unix

  1. Open your terminal and execute:
curl -fsSL https://github.com/owenizedd/bum/raw/main/install.sh | bash

This installation will install bun for you and also bum altogether.

Windows

I only own a Mac, so I can't test at all if Windows is working, and I can't write a script to auto-install on Windows as well. So here are a few instructions on how to install Bum for Windows:

  1. Install Bun
  2. Download the last exe in the latest release, and unzip it
  3. Put the exe in your favorite directory, add the path to this directory in your PATH, and that's it!

As Bum is not tested at all on Windows, it may not works. If it's the case please open an issue and I'll be glad to fix it.

How to use:

  • You can just…

Perhaps I'll make my own solution for this.

Collapse
 
arnavk-09 profile image
ArnavK-09

I am πŸ’€

Collapse
 
maxifjaved profile image
Muhammad Asif Javed

my choice is volt.sh

an awesome tool for node management

Collapse
 
best_codes profile image
Best Codes

In my experience, NVM works great. Can volt manage Bun versions?

Collapse
 
alt_exist profile image
Alternate Existance

i dont use npm just plain JS :)

Collapse
 
robbenzo24 profile image
Rob Benzo

i barely even code :P

Collapse
 
best_codes profile image
Best Codes

'Vanilla JS'. I do that every so often…

Collapse
 
bradstondev profile image
Bradston Henry

At my old company, we used to have Front-End meetups and one person broke down the install time differences and I've been convinced since then. But I have yet to try it out. πŸ€¦πŸΏβ€β™‚οΈ I think you have finally pushed me to give it a go. πŸ™ŒπŸΏ

Collapse
 
best_codes profile image
Best Codes

Yay! :D
You'll love it :)

Collapse
 
devmercy profile image
Mercy

Thank you for sharing, I've been there too