Node.js Error: ENOENT, stat ‘C:\Users\UserName\AppData\Roaming\npm’ on Windows

When going to install Node.js with following command line,
npm install grunt
you may get Error: ENOENT, stat ‘C:\Users\UserName\AppData\Roaming\npm’ problem. Get solution in simple way. Not one solution, many solutions. Let’s come,

Node.js Error: ENOENT, stat 'C:\Users\UserName\AppData\Roaming\npm' on Windows

Node.js Error: ENOENT, stat ‘C:\Users\UserName\AppData\Roaming\npm’ on Windows

Solution: 1

Try with enable Show hidden files,folders, and drives option. This may help some times. But not sure for all. Anyway first try this, Goto
Organize -> Folder and Search options -> view -> Show hidden files,folders, and drives

Solution: 2

Still file is missing in that path, manually create a folder name with ‘npm’. It’ll fix this problem.

Solution: 3

Using following code, setup all the required files and directories
npm install npm -g

Solution: 4

Suppose, above 3 methods are not working, use this way. It should work and it’ll solve all this type of problems.
Run the Command Prompt as an Administrator

The following two tabs change content below.
I am Karthik, software engineer by profession. I'm giving some steps to installing, re-installing, updating, removing and any other related queries about software’s, operating systems, plug-ins and so on. You can find and follow me, from Social Media or here. Google+

Leave a Reply

Your email address will not be published. Required fields are marked *

Please Fill this Sum * Time limit is exhausted. Please reload CAPTCHA.