I have been running into this issue for some time now and I can't really find a solution. I've uninstalled and installed Node.js version 10 and 11 several time but the same issue pops up.
After installing, I run the command "node -v" it returns the version however if I run any other commands it gives me the following error.
Other commands I tired.
node help node console.log("hello")
internal/modules/cjs/loader.js:605
throw err;
^
Error: Cannot find module 'C:\install'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:603:15)
at Function.Module._load (internal/modules/cjs/loader.js:529:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:774:12)
at executeUserCode (internal/bootstrap/node.js:499:15)
at startMainThreadExecution (internal/bootstrap/node.js:436:3)
Thanks

mytestFolderusing command prompt, navigate into the folder, then typenpm initif an interactive process starts asking for package name etc, then it is working fine