Error AtlasError Documentation and Resolution

npm ENOENT for AppData Roaming npm directory on Windows

Error: ENOENT, stat 'C:\Users\<user>\AppData\Roaming\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.

Error: ENOENT, stat C:\Users\<user>\AppData\Roaming\npminstallation
Error: ENOENT, stat 'C:\Users\<user>\AppData\Roaming\npm'
  • The expected npm roaming directory does not exist.
  • The current user account cannot write to the directory.
  • A Windows installer issue left the npm roaming path in an invalid state.
  1. Create the AppData Roaming npm directory if it is missing.
  2. Ensure the current user account can write to the directory.
  3. Retry npm after confirming the folder path exists and is writable.
npm Docs: Common errors
npm ENOENT AppData Roaming npm directory: causes and fixes | Error Atlas