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/2Q3WPWQf29 Replies
sudo apt install python3 build-essential
Same thing
cant tell then. The error shows too little. If node-gyp fails then it should show much more...
I can share the whole file? Nothing appears wrong until that bit though
npm should write a log and it should tell you where so yeah I guess
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
hmmm
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
npm i has a verbose flag, gonna try that and see what happens
nothing extra from gyp
jw can you try using
yarn install
?
possibly you need to install yarn first with npm i -g yarn
can try yarn
but also
is node-gyp supposed to be global
it's bundled with npm
i dont have it
in fact
npm i -g node-gyp
does jack shit unless you configure npm to use the non bundled version