Git Product home page Git Product logo

Comments (3)

darshan-sr avatar darshan-sr commented on June 12, 2024

Facing the same issue since yeterday with pnpm, let me know a way arund to fix this

from node-canvas.

SpaceWaffles5827 avatar SpaceWaffles5827 commented on June 12, 2024

Same here

from node-canvas.

cent-dxv avatar cent-dxv commented on June 12, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.