B
B
bahtier_kamalov2022-02-24 17:35:53
JavaScript
bahtier_kamalov, 2022-02-24 17:35:53

How to fix this error when calling index.js file?

Error: Cannot find module 'C:\Users\Admin\Desktop\TimeDep\index'
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal /modules/cjs/loader:778:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47 {
code: 'MODULE_NOT_FOUND' ,
requireStack: []
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question