Error when using yarn with husky command
omdxp opened this issue · 2 comments
omdxp commented
Error when using yarn
with husky
command
Hi, when I try to execute the yarn
command to install the dependencies, the following command returns an error with code 1:
$ (husky install && husky set .husky/pre-commit "yarn workspaces run lint-staged
yarn --cwd mobile lint-staged") || exit 0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
The same happens when I try yarn dev:web
or yarn deb:mobile
.
To Reproduce
Steps to reproduce the behavior:
- Go to the project's root.
- Execute the
yarn
command. - It installs all the dependencies needed for all projects (api, web, mobile).
- It shows the error above.
- The same happens when using
yarn dev:web
oryarn dev:mobile
.
Expected behavior
Command execute with status code of 0 "success".
Environment:
- OS: Windows 11 Home build 22000.100
ZibanPirate commented
hey @Omar-Belghaouti sorry this happened, for now you can just remove the postinstall
script from the root's package.json, i will debug this later today and see what's going on there.
omdxp commented
@ZibanPirate it's fine, thanks