Skip to content

No valid Claude data directories found (Windows/WSL) #161

@psandler

Description

@psandler

I'm sure this is just my unfamiliarity with Claude Code.

file:///C:/Users/psand/AppData/Roaming/npm/node_modules/ccusage/dist/data-loader-BeaFK_sH.js:3287
if (paths.length === 0) throw new Error(`No valid Claude data directories found. Please ensure at least one of the following exists:
^

Error: No valid Claude data directories found. Please ensure at least one of the following exists:

  • C:\Users\psand.config\claude\projects
  • C:\Users\psand.claude\projects
  • Or set CLAUDE_CONFIG_DIR environment variable to valid directory path(s) containing a 'projects' subdirectory
    at getClaudePaths (file:///C:/Users/psand/AppData/Roaming/npm/node_modules/ccusage/dist/data-loader-BeaFK_sH.js:3287:32)
    at loadDailyUsageData (file:///C:/Users/psand/AppData/Roaming/npm/node_modules/ccusage/dist/data-loader-BeaFK_sH.js:3624:54)
    at Object.run (file:///C:/Users/psand/AppData/Roaming/npm/node_modules/ccusage/dist/index.js:4230:27)
    at executeCommand (file:///C:/Users/psand/AppData/Roaming/npm/node_modules/ccusage/dist/index.js:1122:17)
    at cli (file:///C:/Users/psand/AppData/Roaming/npm/node_modules/ccusage/dist/index.js:1034:8)
    at async file:///C:/Users/psand/AppData/Roaming/npm/node_modules/ccusage/dist/index.js:5032:1

I then created the directory in one of examples listed, but then got " WARN No Claude usage data found. " (I wasn't really expecting that to work.)

I know how to set the env variable, what I don't know is how to find where CC is storing logs (CC doesn't know either). Any help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions