Where Them
Logs App
WTLA-01

npm

3 log locations · Windows, macOS, Linux

npm, Inc.

Where npm keeps its logs

npm logs to %LocalAppData%\npm-cache\_logs\ on Windows.

npm logs to ~/.npm/_logs/ on macOS.

npm logs to ~/.npm/_logs/ on Linux.

Paths are printed exactly as npm writes them. Environment variables like %LOCALAPPDATA% and $XDG_STATE_HOME are never expanded, so a path can be pasted straight into a shell. Where a path differs between installer types or shipping flavours, each one is racked as its own card below - why that happens.

Finding your way around Windows, macOS and Linux.

npm log file locations - Windows, macOS, Linux · Where Them Logs App