Skip to content

[Bug] npm install in a sample directory without first pnpm install in root project results in husky not found error #411

@mjameswh

Description

@mjameswh

Describe the bug

Since the refactor of the root project to be a PNPM workspace, running npm install in a single sample directory from a fresh git clone of the repository (i.e. without first running pnpm install in the root project) results in an error message to the effect that husky is missing.

How to reproduce

git clone github.com/temporalio/samples-typescript.git
cd samples-typescript/hello-world
npm install

results in

[...]

> prepare
> husky install

sh: husky: command not found
npm error code 127
npm error path /[...]/samples-typescript
npm error command failed
npm error command sh -c husky install

Extra

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions