Closed jviotti closed 2 years ago
I see no reason why it shouldn't work and it works fine for me and others. I can't do anything without a reproducible example.
I figured out that the problem occurs when installing globally using sudo. Example: sudo npm install -g @hyperjump/json-schema
I just published a patch that should fix the problem.
Awesome! Thanks a lot @jdesrosiers.
Looks like this package makes use of
rimraf
as apostinstall
script (https://github.com/hyperjump-io/json-schema-validator/blob/main/package.json#L16), which might fail for some people ifrimraf
is not previously installed.See https://github.com/sourcemeta/alterschema/issues/44.
That said, I see
rimraf
is being ran usingnpx
, which is supposed to pull it on demand, right? Maybe that doesn't quite work on some cases? (it seems to work for me)