Giter Site home page Giter Site logo

Comments (4)

yutongs-dmai avatar yutongs-dmai commented on May 24, 2024 3

I encountered same problem. Using a mac and trying to deploy a lambda function. It would be nice if you can implement some installation flags like
npm install --arch=x64 --platform=linux @ffmpeg-installer/ffmpeg.

That way we can specify the actually binary we want to install.

@kribblo

from node-ffmpeg-installer.

kribblo avatar kribblo commented on May 24, 2024

Not sure if there is an easy solution, the whole point of the project is to install a binary for the current platform, so if you are building images on one platform to then run on another it will not work. And it's not using any options or anything, rather using the environment to pull in the correct dependency.

There's a similar, older project (don't recall the name) that inspired this project, that pulled in all the binaries. I made this one because I didn't want to have 5 extra binaries. Could be one solution.

Otherwise, set up some simple way to build in a virtual environment? VirtualBox or something would work if you don't have Jenkins available. I don't think the NPM env variables can be overridden, otherwise that would also work.

It's just not the use case for the project, sadly. But if you come up with some good workaround I'll be happy to add it to the README or add pull requests.

from node-ffmpeg-installer.

blogwy avatar blogwy commented on May 24, 2024

I suggest you not do that.

from node-ffmpeg-installer.

isaacpearl avatar isaacpearl commented on May 24, 2024

@kribblo I was struggling with this problem for a while, and just opened a PR adding my simple workaround to the README. Please let me know if I can add any more contextual information!

from node-ffmpeg-installer.

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.