How to fix ENOENT error when installing modules with NPM

H

When I tried to install a module with NPM, I got an error like

Error: ENOENT, stat 'C:\Users\username\AppData\Roaming\npm'

To fix this, create the ‘npm’ directory manually. It worked like a charm for me. Hopefully, it works for you too!

Add comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Tag Cloud

Categories

%d bloggers like this: