Cant start npm on Windows 8 (Error: ENOENT, stat 'C:\Users\User\AppData\Roaming\npm')

Setting up my new Surface Pro means having to install all the software and tools I need to get my work done. As a web developer this includes node, grunt and other node based libraries. If you are unfamiliar with installing node on Windows it is very simple. Visit and tap the Install button. The site is smart enough to initial the proper installation package. Click the normal next, next sequence we are all familiar with and you should be ready.

Unfortunately it looks like the latest nodejs install for Windows does not completely work. When I tried to execute npm install to download modules for grunt I received an odd error: Error: ENOENT, stat 'C:\Users\User\AppData\Roaming\npm'.

I eventually found the solution on a stackoverflow question. [] The answer is simple, the install does not create an 'npm' folder under the user's roaming profile. Creating the folder solves the issue.

After creating the folder my problem was solved and I was able to start using Grunt. So if you see the Error: ENOENT, stat error when using node, chances are the folder path echoed does not exist and npm cannot create it. I found some other folks having similar issues on other platforms. So create the folder by hand and your problem will most likely be solved.

Share This Article With Your Friends!

Googles Ads Facebook Pixel Bing Pixel LinkedIn Pixel