Created
April 11, 2025 17:33
-
-
Save jaichandra/fb65938c823db07044b72196abfc9ff7 to your computer and use it in GitHub Desktop.
Running npm install in docker with kubevirt VM based on debian
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Running NPM install in a Docker container which is running on a KubeVirt VM (based on debian) | |
NPM install fails, if you have below libs in package.json | |
@pact-foundation/pact | |
@pact-foundation/pact-node | |
canvas | |
image-webpack-loader | |
Fix: | |
These libs need additional dependencies to be installed at the system level. | |
Add below script to your Dockerfile. | |
``` | |
RUN apt-get update && apt-get install -y \ | |
libcairo2-dev \ | |
libpango1.0-dev \ | |
libjpeg-dev \ | |
libgif-dev \ | |
librsvg2-dev \ | |
make \ | |
libpng-dev \ | |
pkg-config | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment