internal/modules/cjs/loader.js:883
throw err;
^
Error: Cannot find module 'node:events'
Require stack:
- D:\UserProfile\Users\Administrator\Desktop\misc\SerriedZ V.2\node_modules\discord.js\src\client\BaseClient.js
- D:\UserProfile\Users\Administrator\Desktop\misc\SerriedZ V.2\node_modules\discord.js\src\index.js
- D:\UserProfile\Users\Administrator\Desktop\misc\SerriedZ V.2\index.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (D:\UserProfile\Users\Administrator\Desktop\misc\SerriedZ V.2\node_modules\discord.js\src\client\BaseClient.js:3:22)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'D:\\UserProfile\\Users\\Administrator\\Desktop\\misc\\SerriedZ V.2\\node_modules\\discord.js\\src\\client\\BaseClient.js',
'D:\\UserProfile\\Users\\Administrator\\Desktop\\misc\\SerriedZ V.2\\node_modules\\discord.js\\src\\index.js',
'D:\\UserProfile\\Users\\Administrator\\Desktop\\misc\\SerriedZ V.2\\index.js'
]
}
I'm getting this error while running node . to run the discord bot, I have tried to fix it by using npm i node:events but didn't seem to fix.
It might be because you are running an older version of Node.js. Try upgrading to a later version.
From Discord.js docs:
Node.js 16.6.0 or newer is required
https://discord.js.org/#/docs/discord.js/stable/general/welcome
Related
Trying to build (compile) an Angular 13 Ionic 6 solution after a migration to capacitor 4 (from capacitor 3) and a full npm cleanup and re-installation, Getting:
Error: Cannot find module './ponyfill.js'
Require stack:
- C:\Users\morsa\Documents\IDrive-Sync\Dev Env\Projects\simplify-pilot\node_modules\symbol-observable\lib\index.js
- C:\Users\morsa\Documents\IDrive-Sync\Dev Env\Projects\simplify-pilot\node_modules\#angular\cli\lib\init.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (C:\Users\morsa\Documents\IDrive-Sync\Dev Env\Projects\simplify-pilot\node_modules\symbol-observable\lib\index.js:7:17)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\Users\\morsa\\Documents\\IDrive-Sync\\Dev Env\\Projects\\simplify-pilot\\node_modules\\symbol-observable\\lib\\index.js',
'C:\\Users\\morsa\\Documents\\IDrive-Sync\\Dev Env\\Projects\\simplify-pilot\\node_modules\\#angular\\cli\\lib\\init.js'
]
}
[ERROR] An error occurred while running subprocess ng.
ng.cmd run app:build exited with exit code 1.
I guess this symbol-observable is used in rxjs (at least).
I tried manually installing:
npm i ponyfill
This did install ponyfill 0.0.1
However, still getting the above error.
Any pointers on how to unstuck me? can't build the app...
/home/runner/stoneclane/node_modules/bindings/bindings.js:121
throw e;
^
Error: The module '/home/runner/stoneclane/node_modules/better-sqlite3/build/Release/better_sqlite3.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 72. This version of Node.js requires
NODE_MODULE_VERSION 93. Please try re-compiling or re-installing
the module (for instance, using npm rebuild or npm install).
at Object.Module._extensions..node (node:internal/modules/cjs/loader:1185:18)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at bindings (/home/runner/stoneclane/node_modules/bindings/bindings.js:112:48)
at new Database (/home/runner/stoneclane/node_modules/better-sqlite3/lib/database.js:48:64)
at Object. (/home/runner/stoneclane/node_modules/quick.db/src/index.js:7:15)
at Module._compile (node:internal/modules/cjs/loader:1103:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/home/runner/stoneclane/node_modules/quick.db/index.js:7:18)
at Module._compile (node:internal/modules/cjs/loader:1103:14) {
code: 'ERR_DLOPEN_FAILED'
}
exit status 1
I buy a react theme from theme forest and trying to open it I install npm and then I execute the command npm start and I get the error showing bellow. I send a message to developer he reply back and said execute the command npm install react-dev-utils --save
I try this but still getting the same error.
So can anyone help me to resolve this problem.
PS C:\Theme\reactjs\Template> npm start
> Artha#0.1.0 start
> node scripts/start.js
node:internal/modules/cjs/loader:936
throw err;
^
**Error: Cannot find module 'react-dev-utils/WatchMissingNodeModulesPlugin'**
Require stack:
- C:\Theme\reactjs\Template\config\webpack.config.js
- C:\Theme\reactjs\Template\scripts\start.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (C:\Theme\reactjs\Template\config\webpack.config.js:16:39)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\Theme\\reactjs\\Template\\config\\webpack.config.js',
'C:\\Theme\\reactjs\\Template\\scripts\\start.js'
]
}
Sometime I am getting this error
PS C:\Theme\reactjs\Template> npm start
> Artha#0.1.0 start
> node scripts/start.js
node:internal/modules/cjs/loader:936
throw err;
^
**Error: Cannot find module 'react-dev-utils/typescriptFormatter'**
Require stack:
- C:\Theme\reactjs\Template\config\webpack.config.js
- C:\Theme\reactjs\Template\scripts\start.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (C:\Theme\reactjs\Template\config\webpack.config.js:23:29)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\Theme\\reactjs\\Template\\config\\webpack.config.js',
'C:\\Theme\\reactjs\\Template\\scripts\\start.js'
]
}
While trying to create a frontend application to consume my django backend through the GraphQL API, I went into downloading node.js I'm getting that error while try to run npx #vue/cli create frontend --default on my git bash terminal. Below is what was being shown to me.
Error: Cannot find module '../util/utimes.js'
Require stack:
- C:\Users\Francisco Technics\AppData\Local\npm-cache\_npx\15e985e3d7a3258b\node_modules\fs-extra\lib\copy-sync\copy-sync.js
- C:\Users\Francisco Technics\AppData\Local\npm-cache\_npx\15e985e3d7a3258b\node_modules\fs-extra\lib\copy-sync\index.js
- C:\Users\Francisco Technics\AppData\Local\npm-cache\_npx\15e985e3d7a3258b\node_modules\fs-extra\lib\index.js
- C:\Users\Francisco Technics\AppData\Local\npm-cache\_npx\15e985e3d7a3258b\node_modules\#vue\cli\lib\create.js
- C:\Users\Francisco Technics\AppData\Local\npm-cache\_npx\15e985e3d7a3258b\node_modules\#vue\cli\bin\vue.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (C:\Users\Francisco Technics\AppData\Local\npm-cache\_npx\15e985e3d7a3258b\node_modules\fs-extra\lib\copy-sync\copy-sync.js:6:20)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\Users\\Francisco Technics\\AppData\\Local\\npm-cache\\_npx\\15e985e3d7a3258b\\node_modules\\fs-extra\\lib\\copy-sync\\copy-sync.js',
'C:\\Users\\Francisco Technics\\AppData\\Local\\npm-cache\\_npx\\15e985e3d7a3258b\\node_modules\\fs-extra\\lib\\copy-sync\\index.js',
'C:\\Users\\Francisco Technics\\AppData\\Local\\npm-cache\\_npx\\15e985e3d7a3258b\\node_modules\\fs-extra\\lib\\index.js',
'C:\\Users\\Francisco Technics\\AppData\\Local\\npm-cache\\_npx\\15e985e3d7a3258b\\node_modules\\#vue\\cli\\lib\\create.js',
'C:\\Users\\Francisco Technics\\AppData\\Local\\npm-cache\\_npx\\15e985e3d7a3258b\\node_modules\\#vue\\cli\\bin\\vue.js'
what can I do appease this bug, i totally no nothing about node.js
I get this error when launching iron-node
buster-test run failed: Error: -c/--config: Error loading configuration /Users/r01010010/Projects/Mad/paysite/test/buster.js
Cannot find module '../build/Debug/addon'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:289:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object.<anonymous> (/Users/r01010010/Projects/Mad/paysite/node_modules/heapdump/lib/main.js:18:15)
at Module._compile (module.js:425:26)
at Object.Module._extensions..js (module.js:432:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:313:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
No idea on how to solve this.
Env: Node.js v0.10.40 with nvm, node-gyp v3.2.1
With iron-node you do not need this Module. You can read and write such things within dev-tools-window in the Profiles tab. There ist also this document which provides more details. https://github.com/s-a/iron-node/blob/master/docs/PROFILE.md