error command sh -c node-pre-gyp install --fallback-to-build

When attempting to run npm i after cloning my bot repo, I get this error. I am currently using Ubuntu 22.04 (LTS) and Node.js 18.17.1 (LTS). This is a fresh install. Below are the relevant logs. https://pastebin.com/2Q3WPWQf
29 Replies
Favna
Favna•12mo ago
sudo apt install python3 build-essential
Noxillio
Noxillio•12mo ago
Same thing
Favna
Favna•12mo ago
cant tell then. The error shows too little. If node-gyp fails then it should show much more...
Noxillio
Noxillio•12mo ago
I can share the whole file? Nothing appears wrong until that bit though
Favna
Favna•12mo ago
npm should write a log and it should tell you where so yeah I guess
Favna
Favna•12mo ago
npm why do you not show the error logs for node-gyp that's so silly idk if there is a config for it maybe something verbose log but this already looks verbose
Noxillio
Noxillio•12mo ago
hmmm
Favna
Favna•12mo ago
well if you dont intend to use @sapphire/type you can remove it from your packagfe.json it's only useful for eval commands just keep in mind you then can also not use zlib-sync or bufferutil which make DJS more efficient because they're native deps too
Noxillio
Noxillio•12mo ago
npm i has a verbose flag, gonna try that and see what happens nothing extra from gyp
Favna
Favna•12mo ago
jw can you try using yarn install? possibly you need to install yarn first with npm i -g yarn
Noxillio
Noxillio•12mo ago
can try yarn but also is node-gyp supposed to be global
Favna
Favna•12mo ago
it's bundled with npm
Noxillio
Noxillio•12mo ago
i dont have it
Favna
Favna•12mo ago
in fact npm i -g node-gyp does jack shit unless you configure npm to use the non bundled version
Want results from more Discord servers?
Add your server