app to make webscrapping app using Reactjs nodejs, indexjs and restAPI - javascript

I tried running this function "node server/index.js" to locally view the app, it gave me the following error. Why are my having the error statements Error: Cannot find module 'typeorm'
The bellow shows all the error message
node:internal/modules/cjs/loader:936
throw err;
^
Error: Cannot find module 'typeorm'
Require stack:
- C:\Users\olani\Desktop\TouristWebscraping\server\db.js
- C:\Users\olani\Desktop\TouristWebscraping\server\index.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\olani\Desktop\TouristWebscraping\server\db.js:3:17)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159: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\\olani\\Desktop\\TouristWebscraping\\server\\db.js',
'C:\\Users\\olani\\Desktop\\TouristWebscraping\\server\\index.js'
]
}

Related

Error: Cannot find module 'react-dev-utils/typescriptFormatter'

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'
]
}

Cannot find module

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

node:internal/modules/cjs/loader:936, throw err; ^ ........while trying to create a folder on my windows terminal

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

Cannot find module 'discord.js'

When I start my discord bot I get an error on the console:
internal/modules/cjs/loader.js:834
throw err;
^
Error: Cannot find module 'discord.js'
Require stack:
- /home/container/index.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:831:15)
at Function.Module._load (internal/modules/cjs/loader.js:687:27)
at Module.require (internal/modules/cjs/loader.js:903:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/home/container/index.js:1:17)
at Module._compile (internal/modules/cjs/loader.js:1015:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
at Module.load (internal/modules/cjs/loader.js:879:32)
at Function.Module._load (internal/modules/cjs/loader.js:724:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/home/container/index.js' ]
}
But if there is an "index.js"
You need to install discord.js, in your console type npm install discord.js

How do I configure Laravel 5.3 with Vue 2?

Every time I gulp watch, I get this
module.js:327
throw err;
^
Error: Cannot find module 'laravel-elixir-vue'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/ubuntu/workspace/gulpfile.js:3:1)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
How do I configure Laravel 5.3 with Vue in a logical order?
I've already pulled in Vue with npm install vue
Tell me if I forgot something crucial to add to this question.

Categories

Resources