npm
npm ENOENT for AppData Roaming npm directory on Windows
npm can fail with ENOENT on the AppData Roaming npm directory when the expected npm user directory does not exist or is not writable on Windows.
npm
npm can fail with ENOENT on the AppData Roaming npm directory when the expected npm user directory does not exist or is not writable on Windows.
Observed message
Error: ENOENT, stat 'C:\Users\<user>\AppData\Roaming\npm'
Why it happens
How to fix it
Official reference
npm Docs: Common errorsRelated errors
Explore more