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)
- WAMP shows error ‘VCRUNTIME140.dll’ is missing and won’t turn green - September 9, 2017
- How to Install Android Studio on Windows step by step - July 18, 2017