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)
- Step to uninstall Android Studio fully on Mac - June 14, 2018
- Step to install new Python Package from inside of IPython - June 14, 2018