Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mjameswh opened this issue Jan 24, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@mjameswh
Copy link
Contributor

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

@mjameswh mjameswh added the bug Something isn't working label Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant