I am new to Node.js and I am trying to run my test files via Node.js. I am simply typing "node .\tut63.js" but it is showing the following error:
Error: Cannot find module 'C:\Users\User11\Desktop\Complete Web Developement Bootcamp\tut63.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
I am simply running a "console.log("HelloWorld");" as my test .js file
tut63.js
and your file name istest.js
. – hacKaTun3s