perry-mitchell / ulidx

ULID generator for NodeJS and the browser
MIT License
281 stars 17 forks source link

Error Installing / upgrading to v2.2.0 due to post:install command dependency on simple-git-hooks #32

Closed mospired closed 1 year ago

mospired commented 1 year ago

when installing/upgrading to v2.2.0 I get the following error

npm ERR! path $ path_to_my_project/node_modules/ulidx
npm ERR! command failed
npm ERR! command sh -c simple-git-hooks
npm ERR! sh: simple-git-hooks: command not found

Looks to be cause by the fact that the package.json has the "postinstall": "simple-git-hooks", script that depends on the simple-git-hooks package that is a NOT a dependency.

Quick work around is to also install simple-git-hooks as a devDependency in my project.

mospired commented 1 year ago

thank you @fell-lucas & @perry-mitchell