Comments (9)
That seems like a yarn issue, can you try npm?
from opus.
still not working 🤔
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.
- What is
--only=dev
such an option does not exist - Why do you run
sudo yarn global add typescript
andsudo yarn global add eslint
and not have it be a build script? - Why is
@discordjs/opus
a devDep? https://github.com/iwaQwQ/Q-Bot/blob/feature/ci-update/package.json#L21
from opus.
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.
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.
Alrighty, thanks for the advice, I'll try again with the corrected list then
from opus.
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.
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.
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)
- Can't install it on my raspberry pi 3 b+ HOT 5
- Unable to install on linux arm64 HOT 4
- Issue Installing discordjs/opus HOT 10
- Can't install on CentOs HOT 1
- Can't install opus on my M1 Mac
- Support for Raspberry pi 4
- Not installing in mac m1 (macOs 11.2)
- [SECURITY] DoS in @discordjs/opus due to invalid encoders/buffers (CVE-2022-25345) HOT 1
- Can not install @discordjs/opus in build/local environment HOT 6
- Where 0.5.0 version? My project broken because it not exist anymore HOT 1
- Add JSDoc to decode method HOT 1
- question: NPM wont install ubuntu
- Json decoder error HOT 2
- I can't download opus on djs 14 HOT 1
- Unable to NPM Install HOT 1
- dyld[53422]: missing symbol called on `decode`. HOT 5
- unable to npm install macOS HOT 8
- Add Glibc 2.36 in the precompiled binaries
- @discordjs/opus does not support nodejs versions > v18.18.2 HOT 13
- Cannot decode opus that came from openAI (Data corrupted) HOT 1
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 opus.