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
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
Still file is missing in that path, manually create a folder name with ‘npm’. It’ll fix this problem.
Using following code, setup all the required files and directories
npm install npm -g
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
Latest posts by KarSho (see all)
- The service is invalid error in iphone 0XE8000022 - December 8, 2016
- How to Install and Setup the TFTP Server on Ubuntu - April 23, 2016