@sapphire/type error

Error when loading '/home/matthew/projects/ts/waddlebot/src/commands/General/eval.ts': error: Cannot find module "/home/matthew/projects/ts/waddlebot/node_modules/@sapphire/type/prebuild/type-node-v115-linux-x64-glibc-2.29/type.node" from "/home/matthew/projects/ts/waddlebot/node_modules/@sapphire/type/dist/esm/index.mjs"
Error when loading '/home/matthew/projects/ts/waddlebot/src/commands/General/eval.ts': error: Cannot find module "/home/matthew/projects/ts/waddlebot/node_modules/@sapphire/type/prebuild/type-node-v115-linux-x64-glibc-2.29/type.node" from "/home/matthew/projects/ts/waddlebot/node_modules/@sapphire/type/dist/esm/index.mjs"
4 Replies
Oreo ™
Oreo ™9mo ago
did u install the package?
Upsided
UpsidedOP9mo ago
yes, i did install the package checked the files and there isn't a prebuild directory for some reason
Oreo ™
Oreo ™9mo ago
delete your node modules and npm i again that might fix it but im just guessing
Favna
Favna9mo ago
and if it doesnt then install the prerequisite build tools for your operating system https://github.com/nodejs/node-gyp#on-unix - Debian / Ubuntu: sudo apt install build-essential - MacOS: xcode-select --install - Others: refer to the link and google
GitHub
GitHub - nodejs/node-gyp: Node.js native addon build tool
Node.js native addon build tool. Contribute to nodejs/node-gyp development by creating an account on GitHub.
Want results from more Discord servers?
Add your server