First, I want to say I installed the NPM using npm install --force
on my Laravel folder project. because if I use without --force
it will show npm err
. After installation finished I try to run npm run dev
then the CMD show something like this
internal/modules/cjs/loader.js:892
throw err;
^
Error: Cannot find module 'C:\xampp\htdocs\newapp\node_modules\npm\bin\npm-cli.js'
[90m at Function.Module._resolveFilename (internal/modules/cjs/loader.js:889:15)[39m
[90m at Function.Module._load (internal/modules/cjs/loader.js:745:27)[39m
[90m at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)[39m
[90m at internal/main/run_main_module.js:17:47[39m {
code: [32m'MODULE_NOT_FOUND'[39m,
requireStack: []
}
Please help me to solve this problem, Thanks