Unable to setup cht core dev environment

Hello community!! :slight_smile:

I am new to CHT and currently trying to learn and understand more about the CHT, so I was trying to setup the cht-core project locally, was following the steps mentioned in link for the setup

But I encountered the following error[screenshots attached] while performing the command npm run build-dev




These are my machine specs:


Hardware Information:

  • Hardware Model: HP HP Laptop 15s-gr0xxx
  • Memory: 8.0 GiB
  • Processor: AMD Ryzen™ 3 3250U with Radeon™ Graphics × 4
  • Graphics: AMD Radeon™ Vega 3 Graphics
  • Disk Capacity: 1.3 TB

Software Information:

  • Firmware Version: F.25
  • OS Name: Ubuntu 24.04.2 LTS
  • OS Build: (null)
  • OS Type: 64-bit
  • GNOME Version: 46
  • Windowing System: Wayland
  • Kernel Version: Linux 6.11.0-24-generic

Node and NPM version:

  • v22.15.0
  • 10.9.2

What I am able to understand by going through the logs is it seems like this issue is arising due to some deprecated packages?

How can I resolve this issue?

P.S. Should I attach screenshots of error log or there is any other way to share error logs?

1 Like

Thanks for reporting!
Looking at the logs it seems that your machine cannot find bzip2 utility for unzipping some dependency.
Try these two commands

sudo apt update
sudo apt install bzip2

Then remove node_modules and reinstall

rm -rf node_modules
npm ci
7 Likes

Hey rajeevtapadia, Thanks for the reply!!
It worked!! :grinning_face_with_smiling_eyes:

But I have a doubt. Is the bzip2 expected to be present in the OS installation by default?
As docs don’t have any mention to install this dependency, should the docs be updated to include it?

2 Likes

Yeah, might be worth mentioning in this section.

1 Like

Yes, It would be great to add it in the Prerequisites section!!

If any mod can confirm should we create a issue to include this in docs??(Or I should just create issue?)
I would love to help in this :grin:

bzip2 is there by default in most Linux distribution. AFAIK its not there if WSL2 and a minimal Linux install and in your case Ubuntu.
Was your Ubuntu installation a minimal one or standard one?

I don’t recall facing this while setting up cht-core on the latest Linux Mint LTS version.

1 Like

I am not entirely sure about this, but I downloaded the .iso from here and dual-booted my PC, keeping most settings at default.

1 Like

Wow! Really great to see the community helping each out here - this was just lovely to see. Thanks all!

Yup - please always free to open an issue. If you have the time, feel free to open a pull request as well! If it’s a small fix, like this one, you can jump directly to opening the pull request, we don’t need issues for everything.

I went ahead and made one for this issue already though. Thanks!

2 Likes