Coder Social home page Coder Social logo

Comments (9)

iCrawl avatar iCrawl commented on June 27, 2024

That seems like a yarn issue, can you try npm?

from opus.

iwa avatar iwa commented on June 27, 2024

still not working 🤔

Screen Shot 2020-05-01 at 15 23 30

my ci config file is available here (if needed) : https://github.com/iwaQwQ/Q-Bot/blob/feature/ci-update/.github/workflows/ci.yml

from opus.

iCrawl avatar iCrawl commented on June 27, 2024

from opus.

iwa avatar iwa commented on June 27, 2024

I'm still a newbie with Github Actions, so I may have made some dumb mistakes, sorry about that
I learnt CI configs with Gitlab, so i'm used to write the entire script on my own

I put every needed dependencies into devDep because I run multiple bots on my server, so instead of having to install libsodium for each bot, i've installed it globally.
Like that i don't have to install it on my pc or CIs host since i can install only dev dependencies with --only=dev.
But I think doing that is a mistake ?

from opus.

iCrawl avatar iCrawl commented on June 27, 2024

Yeah, sadly thats not how things work in node.

Every package.json should list all the things it needs, otherwise we cant guarantee working conditions on packages, like the issue you have right now

from opus.

iwa avatar iwa commented on June 27, 2024

Alrighty, thanks for the advice, I'll try again with the corrected list then

from opus.

iwa avatar iwa commented on June 27, 2024

Alright, I've fixed my dependencies list, but it was still not working
After some tests, I figured out that it works by installing the dependencies with sudo rights (works both with npm and yarn as long as they have sudo rights)

The issue seems to be only on Github Actions, I tried to install the package on my mac (macOS 10.15.4) and my server, which runs on Debian 10, and everything worked well

Anyway, thanks for your help c:

I had another question, should I also install ffmpeg as a node dependency, or keeping it installed systemwide is fine ?

from opus.

iCrawl avatar iCrawl commented on June 27, 2024

I figured out that it works by installing the dependencies with sudo rights

Using npm i --unsafe-perm usually does the trick here, no idea about yarn on that one though

I had another question, should I also install ffmpeg as a node dependency, or keeping it installed systemwide is fine ?

ffmpeg should be installed via the package manager of the distro you use whether that be brew, apt, pacman, dnf, yum etc. (on windows it should be https://ffmpeg.zeranoe.com/builds/)

from opus.

iwa avatar iwa commented on June 27, 2024

yarn don't seems to have a similar option, so I think it only works with sudo rights when using yarn

i'm closing the issue since it's fixed, thanks for your help!

from opus.

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.