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
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
Latest posts by KarSho (see all)
- Step to Install JOOMLA in WAMP Localhost - March 30, 2020
- ‘Your Projects’ Links Not working in WAMP Server - March 29, 2020