You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Darwin MacBook-Air-de-Youri.local 24.1.0 Darwin Kernel Version 24.1.0: Thu Oct 10 21:05:14 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T8103 arm64
Subsystem
Other
Description
This not the first time it happened, i run my js script, that perfectly work (it as already run), but then nothing happens, like really nothing, it seem toi be coming from the require like this const {Client, GatewayIntentBits, Partials, Collection} = require("discord.js");
i noted that removing the package imported to crash the process because the module doesn't exist.
it's really disturbing, for now the only fix i found is to delete the node_modules folder and do npm i again.
i have tried to remove npm cache but didn't change any thing.
Minimal Reproduction
That a good question, it's randomly happend, and a friend of mine did have the same issue but on window
it's not seem to be link to any particular project as none of my node project can run.
Output
No response
Before You Submit
I have looked for issues that already exist before submitting this
As i started a new project, i still had the issue, but this time after running npm cache clear --force did fix the issue.
I forgot to say that node/npm were install using nvm
Node.js Version
v20.18.0
NPM Version
v10.8.2
Operating System
Darwin MacBook-Air-de-Youri.local 24.1.0 Darwin Kernel Version 24.1.0: Thu Oct 10 21:05:14 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T8103 arm64
Subsystem
Other
Description
This not the first time it happened, i run my js script, that perfectly work (it as already run), but then nothing happens, like really nothing, it seem toi be coming from the
require
like thisconst {Client, GatewayIntentBits, Partials, Collection} = require("discord.js");
i noted that removing the package imported to crash the process because the module doesn't exist.
it's really disturbing, for now the only fix i found is to delete the
node_modules
folder and donpm i
again.i have tried to remove npm cache but didn't change any thing.
Minimal Reproduction
That a good question, it's randomly happend, and a friend of mine did have the same issue but on window
it's not seem to be link to any particular project as none of my node project can run.
Output
No response
Before You Submit
The text was updated successfully, but these errors were encountered: