NodeJS: Resolving “Cannot find module” error

Quick tip today.

If you are getting the error below when trying to run npm install and going crazy because the module is there, don't worry!

The solutions are possible one of the follow: clearing the npm cache, deleting the node_modules folder in project directory or setting the node path in the environment variables.

Error: Cannot find module 'SOME_MODULE_HERE'
   at Function.Module._resolveFilename (module.js:338:15)
   at Function.Module._load (module.js:280:25)
   at Module.require (module.js:362:17)