Search code examples
node.jsnpmvisual-studio-codenode-promisify

npm error after installing Node.js: Cannot find module 'es6-promisify'


I have installed the latets version of Node.js for Windows. Whatever command I use I always get the same exception, i.e. when I type "npm -v" get this error message:

Cannot find module 'es6-promisify'

How to install "es6-promisify" when NPM is missing "es6-promisify" in the first place?

BTW, during the installation of Node.js a view dependencies try to access protected foldes inside external hard drives for no reason and the last error that stuck forever was the installation of Microsoft Visual Studio Code. It seems to me that those tools cannot be installed without giving 100% access to every folder on every partition you have. This seems wrong to me...


Solution

  • Step 1: Uninstall the NodeJs app from the system Step 2: Goto the programFiles/nodejs -> delete node_modules folder Step 3: Reinstall NodeJs app

    By following these steps you can fix the issue.