typicode / husky-4-to-8

Quickly migrate your hooks from husky v4 to husky@latest
MIT License
131 stars 20 forks source link

Cannot use `npm exec` #19

Open jsumners opened 3 years ago

jsumners commented 3 years ago

https://github.com/typicode/husky-4-to-6/blob/c9bbca76eeaec8a91a5dfd1095a9907114623e47/README.md#L16

^ that requires npm@7 which does not ship with any current LTS release of Node.js.

RinkAttendant6 commented 3 years ago

I also just ran into this issue and it looks like it has already been raised here: https://github.com/typicode/husky-4-to-6/issues/12

simoneb commented 3 years ago

The npm@6 working alternative is:

npx github:typicode/husky-4-to-7 --remove-v4-config
cray2015 commented 3 years ago

The npm@6 working alternative is:

npx github:typicode/husky-4-to-6 --remove-v4-config

This worked!

andorfermichael commented 3 years ago

The npm@6 working alternative is:

npx github:typicode/husky-4-to-6 --remove-v4-config

This should be added to the docs. PRs are already open, please merge @typicode

thany commented 3 years ago

Doesn't work. Reports EBUSY error.

JohnnyDevNull commented 2 years ago

Doesn't work. Reports: npm ERR! Cannot convert undefined or null to object

Node Version: 16.17.0 NPM version: 8.15.0

xeroxoid commented 2 years ago

+1 not working here

npx github:typicode/husky-4-to-8 --remove-v4-config
Need to install the following packages:
  husky-4-to-8@1.0.0
Ok to proceed? (y) y
npm ERR! Cannot convert undefined or null to object
dhalenok commented 2 years ago

@JohnnyDevNull @xeroxoid I was facing the same issue on Node v16.17.1, but then I've tried v14.17.5 which seemingly went fine.