This is the exact error that I am getting on running nm-v. Please help to fix this. So that I can set node js properly to record mobile app using katalon recorder
C:\Users\Archana>npm -v
node:internal/modules/cjs/loader:936
throw err;
^
Error: Cannot find module ‘C:\Program Files\nodejs\node_modules\npm\bin\node_modules\npm\bin\npm-cli.js’
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:81:12)
at node:internal/main/run_main_module:17:47 {
code: ‘MODULE_NOT_FOUND’,
requireStack:
}
node:internal/modules/cjs/loader:936
throw err;
^
Error: Cannot find module ‘C:\Program Files\nodejs\node_modules\npm\bin\node_modules\npm\bin\npm-cli.js’
←[90m at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)←[39m
←[90m at Function.Module._load (node:internal/modules/cjs/loader:778:27)←[39m
←[90m at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)←[39m
←[90m at node:internal/main/run_main_module:17:47←[39m {
code: ←[32m’MODULE_NOT_FOUND’←[39m,
requireStack:
}
In the mentioned path in the above error Actually No file exist under C:\Program Files\nodejs\node_modules\npm\bin\node_modules\npm\bin\npm-cli.js.
My file is in C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js.
Then Why it is showing diffrent paths?