mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #5397] [MERGED] fix: ensure npm is installed for Node.js base image #5188
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#5188
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/5397
Author: @Leon-Luu
Created: 9/22/2025
Status: ✅ Merged
Merged: 9/24/2025
Merged by: @mirarifhasan
Base:
next← Head:fix/npm_install_failed_2025_8_0📝 Commits (2)
410219afix: ensure npm is installed for Node.js base imagefa0390eApply suggestion from @Copilot📊 Changes
1 file changed (+3 additions, -3 deletions)
View changed files
📝
prod.Dockerfile(+3 -3)📄 Description
This PR updates the prod.Dockerfile to explicitly install npm alongside nodejs in the Alpine base image.
On Alpine, nodejs does not include npm by default, which caused build failures when running npm install -g ....
The fix adds npm to the apk add command, ensuring the Node.js environment is complete and compatible with subsequent global package installations.
Closes #
https://github.com/hoppscotch/hoppscotch/issues/5396
What's changed
Add npm to the apk add --no-cache nodejs npm curl tini bash command in the Node.js base stage.
This resolves /bin/sh: npm: not found errors during Docker builds in CI and local environments.
Notes to reviewers
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.