Skip to content

Error when setting up new CDK project due to missing tree command #2662

@NovemberTang

Description

@NovemberTang

When running npx @guardian/cdk@latest new ... to set up a new project, it gets almost all the way to the end, and then errors when trying to show a list of the new files

Success! Here's a summary of the created files:
/bin/sh: tree: command not found
Error: tree exited with status 127

I've conferred with a second colleague to reproduce the error, and it looks like tree is not a bash utility that is installed by default any more, and we can't rely on its existence. Could we adjust the process to reflect this, either by removing tree as a dependency, or installing it as part of the setup process?

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