prati@LAPTOP-A2ET79D1 MINGW64 ~/OneDrive/Desktop/WEB D/2.2+Native+Modules
$ node index.js
node:internal/modules/cjs/loader:1152
throw err;
^
Error: Cannot find module ‘C:UserspratiOneDriveDesktopWEB D2.2+Native+Modulesindex.js’
at Module._resolveFilename (node:internal/modules/cjs/loader:1149:15)
at Module._load (node:internal/modules/cjs/loader:990:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:142:12)
at node:internal/main/run_main_module:28:49 {
code: ‘MODULE_NOT_FOUND’,
requireStack: []
}
Node.js v21.6.1
this error
what can i doenter image description here
so i am using VS Code studio for my web dev project
i install git bash and node js to use javascript in it
at the terminal i select bash and make a directory
in the directory i create a file namely index.js in which i wrote console.log (“hello”);
now i am using the command node index.js to run javascript
after writing node index.js it should show hello but it is showing an error