NPM Cannot find module

I have this problem. I need to install node again or have other alternative. See my code here:

C:\Users\micha\Downloads\mBlock-master\mBlock-master>npm -v
module.js:540
throw err;
^

Error: Cannot find module ‘C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js’
at Function.Module._resolveFilename (module.js:538:15)
at Function.Module._load (module.js:468:25)
at Function.Module.runMain (module.js:684:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3
module.js:540
throw err;
^

Error: Cannot find module ‘C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js’
at Function.Module._resolveFilename (module.js:538:15)
at Function.Module._load (module.js:468:25)
at Function.Module.runMain (module.js:684:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3

Hi @MichaelCesar,

I found some possible solutions related to your issue at Stack Overflow.

If the system path suggestions do not work, then try uninstalling and reinstalling npm.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.