Comments (3)
Facing the same issue since yeterday with pnpm, let me know a way arund to fix this
from node-canvas.
Same here
from node-canvas.
@SpaceWaffles5827 @darshan-sr Hey guys i found the solution
I'm using it in Doker this is the docker file that worked for me
i found this solution from their installation dependency there is @mapbox/node-pre-gyp
so i followed that and installed it manually after it didn't work yet the second thing i did was
in their source i found another way of installing it which is installing from pre-build it dose load the
actual binary to your source code so it dose work after if you have different machine check thire source code
i hop this will save your time
from node:latest
WORKDIR /app
RUN apt update
RUN npm uninstall node-pre-gyp --save
RUN npm install @mapbox/node-pre-gyp --save
RUN apt install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev --fix-missing -y
RUN apt-get update
RUN npm install canvas --build-from-source
COPY package.json .
RUN npm install
COPY . .
EXPOSE 5050
CMD ["npx","nodemon","app"]
from node-canvas.
Related Issues (20)
- The loadImage() method can fail with Request timed out error on older hardware HOT 2
- Mark TextMetrics#fontBoundingBoxAscent etc. as unimplemented HOT 1
- Cannot install canvas on apple silicon HOT 13
- SVG cannot load the image link & font CSS HOT 1
- Move away from GTK 2 to newer libraries on Windows HOT 1
- Unexpected font fallback strategy on Linux
- npm intall not working HOT 9
- mac OS 14 => Cant install despite all other issues and installation guide HOT 6
- Canvas installation failure with Node v20.12.1 HOT 2
- Running electron-builder on Win11 fails when package "pdfjs-dist" is included because of ~/node_modules/canvas HOT 3
- How to use prebuild for AWS lambda? HOT 1
- npm intall not working on node v22 HOT 9
- node-canvas will not install. at all. HOT 6
- loadImage function is not allowing use of await keyword HOT 1
- Canvas fails to import after install HOT 2
- Calling `registerFont()` on multiple fonts in same family appears to break prior registration (Avenir Next Rounded)
- 'colorSpace' missing from the declaration of ImageData
- gyp: Undefined variable android_ndk_path in binding.gyp while trying to load binding.gyps HOT 1
- node-canvas wont install, what so ever HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-canvas.