a blog for those who code

Saturday 20 December 2014

How to solve npm Error : ENOENT, stat in Nodejs

In this post we will show you how to solve Error: ENOENT, stat 'C:\Users\Me\AppData\Roaming\npm'.

Suppose you have started learning Nodejs and trying to install some modules using npm for example npm install bunyan, you might get an error like Error: ENOENT, stat 'C:\Users\Me\AppData\Roaming\npm'.


So, to solve this error you need to manually create a folder named 'npm' inside 'C:\Users\Me\AppData\Roaming\'. After doing this your install would be successful. Just for an information AppData is a hidden folder. You need to check "Show hidden files,folders, and drives".



If the above solution doesn't work for you, try to run Node.js Command Prompt as an Administrator.

Please Like and Share the Blog, if you find it interesting and helpful.

No comments:

Post a Comment