[GH-ISSUE #5396] [bug]: unable to build backend on 2025.8.1 on Github CI #2073

Closed
opened 2026-03-16 23:04:51 +03:00 by kerem · 2 comments
Owner

Originally created by @Leon-Luu on GitHub (Sep 22, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5396

Originally assigned to: @Leon-Luu on GitHub.

Is there an existing issue for this?

  • I have searched existing issues and this bug hasn't been reported yet

Platform

Web App

Browser

Chrome

Operating System

Linux

Bug Description

When building the Hoppscotch backend Docker image using Alpine as the base, the build fails with the error /bin/sh: npm: not found.
This is because the Alpine nodejs package does not include npm by default, but the Dockerfile expects npm to be available for global installs.

Image

Steps to Reproduce:
Clone the Hoppscotch repository.
Run docker build -t hoppscotch-backend -f prod.Dockerfile
Observe the build failure at the step running npm install -g ....

Deployment Type

Self-hosted (on-prem deployment)

Version

2025.8.1

Originally created by @Leon-Luu on GitHub (Sep 22, 2025). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5396 Originally assigned to: @Leon-Luu on GitHub. ### Is there an existing issue for this? - [x] I have searched existing issues and this bug hasn't been reported yet ### Platform Web App ### Browser Chrome ### Operating System Linux ### Bug Description When building the Hoppscotch backend Docker image using Alpine as the base, the build fails with the error /bin/sh: npm: not found. This is because the Alpine nodejs package does not include npm by default, but the Dockerfile expects npm to be available for global installs. <img width="2671" height="880" alt="Image" src="https://github.com/user-attachments/assets/1e273856-ff7c-4d51-9b7b-5d849b6cdfbf" /> **Steps to Reproduce:** Clone the Hoppscotch repository. Run docker build -t hoppscotch-backend -f prod.Dockerfile Observe the build failure at the step running npm install -g .... ### Deployment Type Self-hosted (on-prem deployment) ### Version 2025.8.1
kerem 2026-03-16 23:04:51 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@Leon-Luu commented on GitHub (Sep 22, 2025):

@jamesgeorge007 please check, I have fix propose to https://github.com/hoppscotch/hoppscotch/pull/5397

<!-- gh-comment-id:3317748856 --> @Leon-Luu commented on GitHub (Sep 22, 2025): @jamesgeorge007 please check, I have fix propose to https://github.com/hoppscotch/hoppscotch/pull/5397
Author
Owner

@jamesgeorge007 commented on GitHub (Sep 25, 2025):

Closing, since this is now resolved. Thanks for the PR, @Leon-Luu 🙌

<!-- gh-comment-id:3332489093 --> @jamesgeorge007 commented on GitHub (Sep 25, 2025): Closing, since this is now resolved. Thanks for the PR, @Leon-Luu 🙌
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#2073
No description provided.