Cannot find module

Anyone know what I need to install? (Ubuntu 22, image attached)
No description
Solution:
https://github.com/nodejs/node-gyp#on-linux though sudo apt install build-essential should be the command you need...
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.
Jump to solution
5 Replies
Solution
Favna
Favna•11mo ago
https://github.com/nodejs/node-gyp#on-linux though sudo apt install build-essential should be the command you need
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.
./Ticker
./TickerOP•11mo ago
Got it, thanks!
./Ticker
./TickerOP•11mo ago
:989600801687220315: Heya, seems that the issue might still exist?
Error when loading '/home/ubuntu/src/commands/General/eval.js': Error: Cannot find module '/home/ubuntu/node_modules/@sapphire/type/prebuild/type-node-v120-linux-x64-glibc-2.35/type.node'
Require stack:
- /home/ubuntu/node_modules/@sapphire/type/dist/cjs/index.cjs
- /home/ubuntu/src/commands/General/eval.js
- /home/ubuntu/node_modules/@sapphire/pieces/dist/cjs/lib/strategies/LoaderStrategy.cjs
- /home/ubuntu/node_modules/@sapphire/pieces/dist/cjs/index.cjs
- /home/ubuntu/node_modules/@sapphire/framework/dist/cjs/lib/utils/application-commands/ApplicationCommandRegistries.cjs
- /home/ubuntu/node_modules/@sapphire/framework/dist/cjs/index.cjs
- /home/ubuntu/node_modules/@sapphire/plugin-logger/dist/cjs/lib/Logger.cjs
- /home/ubuntu/node_modules/@sapphire/plugin-logger/dist/cjs/index.cjs
- /home/ubuntu/node_modules/@sapphire/plugin-logger/dist/cjs/register.cjs
- /home/ubuntu/src/lib/setup.js
- /home/ubuntu/src/index.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1149:15)
at Module._load (node:internal/modules/cjs/loader:990:27)
at Module.require (node:internal/modules/cjs/loader:1237:19)
at require (node:internal/modules/helpers:176:18)
at Object.<anonymous> (/home/ubuntu/node_modules/@sapphire/type/dist/cjs/index.cjs:27:46)
at Module._compile (node:internal/modules/cjs/loader:1378:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1437:10)
at Module.load (node:internal/modules/cjs/loader:1212:32)
at Module._load (node:internal/modules/cjs/loader:1028:12)
at Module.require (node:internal/modules/cjs/loader:1237:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/ubuntu/node_modules/@sapphire/type/dist/cjs/index.cjs',
'/home/ubuntu/src/commands/General/eval.js',
'/home/ubuntu/node_modules/@sapphire/pieces/dist/cjs/lib/strategies/LoaderStrategy.cjs',
'/home/ubuntu/node_modules/@sapphire/pieces/dist/cjs/index.cjs',
'/home/ubuntu/node_modules/@sapphire/framework/dist/cjs/lib/utils/application-commands/ApplicationCommandRegistries.cjs',
'/home/ubuntu/node_modules/@sapphire/framework/dist/cjs/index.cjs',
'/home/ubuntu/node_modules/@sapphire/plugin-logger/dist/cjs/lib/Logger.cjs',
'/home/ubuntu/node_modules/@sapphire/plugin-logger/dist/cjs/index.cjs',
'/home/ubuntu/node_modules/@sapphire/plugin-logger/dist/cjs/register.cjs',
'/home/ubuntu/src/lib/setup.js',
'/home/ubuntu/src/index.js'
]
}
Error when loading '/home/ubuntu/src/commands/General/eval.js': Error: Cannot find module '/home/ubuntu/node_modules/@sapphire/type/prebuild/type-node-v120-linux-x64-glibc-2.35/type.node'
Require stack:
- /home/ubuntu/node_modules/@sapphire/type/dist/cjs/index.cjs
- /home/ubuntu/src/commands/General/eval.js
- /home/ubuntu/node_modules/@sapphire/pieces/dist/cjs/lib/strategies/LoaderStrategy.cjs
- /home/ubuntu/node_modules/@sapphire/pieces/dist/cjs/index.cjs
- /home/ubuntu/node_modules/@sapphire/framework/dist/cjs/lib/utils/application-commands/ApplicationCommandRegistries.cjs
- /home/ubuntu/node_modules/@sapphire/framework/dist/cjs/index.cjs
- /home/ubuntu/node_modules/@sapphire/plugin-logger/dist/cjs/lib/Logger.cjs
- /home/ubuntu/node_modules/@sapphire/plugin-logger/dist/cjs/index.cjs
- /home/ubuntu/node_modules/@sapphire/plugin-logger/dist/cjs/register.cjs
- /home/ubuntu/src/lib/setup.js
- /home/ubuntu/src/index.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1149:15)
at Module._load (node:internal/modules/cjs/loader:990:27)
at Module.require (node:internal/modules/cjs/loader:1237:19)
at require (node:internal/modules/helpers:176:18)
at Object.<anonymous> (/home/ubuntu/node_modules/@sapphire/type/dist/cjs/index.cjs:27:46)
at Module._compile (node:internal/modules/cjs/loader:1378:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1437:10)
at Module.load (node:internal/modules/cjs/loader:1212:32)
at Module._load (node:internal/modules/cjs/loader:1028:12)
at Module.require (node:internal/modules/cjs/loader:1237:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/ubuntu/node_modules/@sapphire/type/dist/cjs/index.cjs',
'/home/ubuntu/src/commands/General/eval.js',
'/home/ubuntu/node_modules/@sapphire/pieces/dist/cjs/lib/strategies/LoaderStrategy.cjs',
'/home/ubuntu/node_modules/@sapphire/pieces/dist/cjs/index.cjs',
'/home/ubuntu/node_modules/@sapphire/framework/dist/cjs/lib/utils/application-commands/ApplicationCommandRegistries.cjs',
'/home/ubuntu/node_modules/@sapphire/framework/dist/cjs/index.cjs',
'/home/ubuntu/node_modules/@sapphire/plugin-logger/dist/cjs/lib/Logger.cjs',
'/home/ubuntu/node_modules/@sapphire/plugin-logger/dist/cjs/index.cjs',
'/home/ubuntu/node_modules/@sapphire/plugin-logger/dist/cjs/register.cjs',
'/home/ubuntu/src/lib/setup.js',
'/home/ubuntu/src/index.js'
]
}
MRDGH2821
MRDGH2821•11mo ago
Maybe try npm i again? 🤔
Favna
Favna•11mo ago
yeah you need to npm install again or npm rebuild should also work
Want results from more Discord servers?
Add your server