Skip to content

Error "The command line is too long" when trying to run jscodeshift with a pattern match which returns many files #620

@darrenw-npi

Description

@darrenw-npi

I am getting "The command line is too long" when trying to run jscodeshift with a pattern match which returns 147 files. I am guessing this is because it passes all of the filenames on the command line. If I transform just a handful of files it works fine.
Can you let me know how I can resolve this issue please.
I am running this using Bash (MINGW64) on Windows 11. I can't use command prompt or PowerShell as they don't understand the globs like "**/*.spec.ts".

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