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

Command "dlx" not found. #25

Open
diavrank opened this issue Oct 18, 2021 · 2 comments
Open

Command "dlx" not found. #25

diavrank opened this issue Oct 18, 2021 · 2 comments

Comments

@diavrank
Copy link

Is it normal this error?

git:(dev) ✗ yarn add husky@latest --dev \
>   && yarn dlx husky-init --yarn2 \
cmdand>   && npm exec -- github:typicode/husky-4-to-7 --remove-v4-config
yarn add v1.22.5
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
warning "firebase-admin > @firebase/database-compat@0.1.2" has unmet peer dependency "@firebase/app-compat@0.x".
warning "firebase-admin > @firebase/database-compat > @firebase/database > @firebase/auth-interop-types@0.1.6" has unmet peer dependency "@firebase/app-types@0.x".
[4/4] 🔨  Building fresh packages...
success Saved lockfile.
success Saved 1 new dependency.
info Direct dependencies
└─ husky@7.0.2
info All dependencies
└─ husky@7.0.2
✨  Done in 1.44s.
yarn run v1.22.5
error Command "dlx" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I ask that because it did update husky to 7.0.2.

@joe-eb
Copy link

joe-eb commented Oct 20, 2021

Seems like you should replace npm exec -- with npx
yarn add husky@latest --dev && npx husky-init && npx github:typicode/husky-4-to-7 --remove-v4-config

@kavinda1995
Copy link

For me using npx husky-init && yarn worked for yarn 1.x.
Source: https://www.npmjs.com/package/husky-init

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants