Skip to content

lean-spec create fails with Error: Invalid template format right after successful init on Windows 11 #144

@alitekdemir

Description

@alitekdemir

Summary

On Windows 11, lean-spec init completes successfully in a fresh project, but the next command fails:

npx.cmd lean-spec create jira-issue-worklog-ingestion

Error:

Error: Invalid template format

Environment

  • Windows 11
  • PowerShell
  • Python 3.14.3
  • Node v24.14.0
  • npm / npx 11.9.0

Reproduction

$env:Path = "C:\Tools\node;" + $env:Path
node -v
npm.cmd -v
npx.cmd -v

npx.cmd lean-spec init
npx.cmd lean-spec create jira-issue-worklog-ingestion

Verified setup

The environment is working correctly before running LeanSpec:

node -v     => v24.14.0
npm.cmd -v  => 11.9.0
npx.cmd -v  => 11.9.0

lean-spec init also reports successful initialization and creates the expected project structure, including:

  • specs/
  • .lean-spec/config.json
  • .lean-spec/templates/

Expected behavior

lean-spec create jira-issue-worklog-ingestion should create a new spec successfully.

Actual behavior

It fails with:

Error: Invalid template format

Likely area

This appears to be related to the generated default template or template configuration created during init.

Additional info

I can provide:

  • .lean-spec/config.json
  • contents of .lean-spec/templates/
  • output of npx.cmd lean-spec templates
  • output of npx.cmd lean-spec validate

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions