Run command prompt as administrator, and create the folder.
– James WestgateOct 29 '14 at 9:37

To remember the error, you can read it like "Error: NO ENTry". So check the directory whether it exists, otherwise create a new one. If there's no access, you can run the command prompt as administrator. Though for no access error node.js normally arise EACCESS error.
– codersaifJul 10 '15 at 7:11

Googlers, also note, that you can get this message as an ‘not found answer’ to small path typos, i.e. res.sendfile('pathSlightlyWrong/posts.html') (experienced under Windows 7)
– Frank NockeApr 18 '16 at 8:37

After creating the npm folder manually in C:\Users\UserName\AppData\Roaming\ that particular error was gone, but it gave similar multiple errors as it tried to create additional directories in the npm folder and failed. The issue was resolved after running the command prompt as an administrator.

This is the only one that worked for me. Need to use -g for 'Global Mode' so it installs the packages into your <nodejs application path>. It will place them in the 'node_modules' folder. Otherwise, it will run in local mode and attempt to place the files and directories into the whichever path you are currently in. Sometimes, even running as administrator, you will run into directory access issues.
– Justin RussoJan 25 '15 at 14:10

This is the only solution that worked for me as well running Win 8.1 with the 64-bit installer. Thanks!
– RyGuyJan 28 '15 at 20:59

Thanks :) the only solution working for me :)
– may saghiraJan 29 '15 at 14:51

I needed a package from github that was written in typscript. I did a git pull of the most recent version from the master branch into the root of my main project. I then went into the directory and did an npm install so that the gulp commands would work that generates ES5 modules. Anyway, to make the long story short, my build process was trying to build files from this new folder so I had to move it out of my root. This was causing these same errors.

Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).