-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed
Labels
Bugthing that needs fixingthing that needs fixingRelease 7.xwork is associated with a specific npm 7 releasework is associated with a specific npm 7 release
Milestone
Description
The latest version of husky
is broken in npm v7. I'm not sure if this regression is intended or not, i.e. if Husky needs to be updated or npm needs a bugfix.
Current Behavior:
~ npx husky-run pre-commit
npm ERR! could not determine executable to run
npm ERR! A complete log of this run can be found in:
...
Expected Behavior:
~ npx husky-run pre-commit
husky > pre-commit (node v14.10.1)
Hello World!
...
Steps To Reproduce:
- Create a new empty folder and run
npm init -y
inside it - Install
husky
withnpm i -D husky
- Create a simple config, e.g .
echo '{ "hooks": { "pre-commit": "echo Hello World!" } }' > .huskyrc.json
- Run
npx husky-run pre-commit
- npm v7 will fail with "could not determine executable", while npm v6 works
Environment:
- OS: Ubuntu 20.04 or Windows 10 v2004
- Node: 14.10.1
- npm: 7.0.0-beta.11
vegerot, czue, jpfortin, mohammad-rahchamani, Ogala and 2 more
Metadata
Metadata
Assignees
Labels
Bugthing that needs fixingthing that needs fixingRelease 7.xwork is associated with a specific npm 7 releasework is associated with a specific npm 7 release