I want add a pre-commit hook to run @nxpm/stack lint on my Nx project. I have installed it as a development dependency.
When I run it through NPX, as in npx nxpm-stack lint, it works just fine.
However, if I try to run it with nxpm-stack lint, it throws "nxpm-stack is not recognized...". I even installed the library globally, but I still get same error.
Do you know how can I fix this, so I don't have to run the script from NPX on every commit, but instead have it installed in my machine?
I want add a pre-commit hook to run @nxpm/stack lint on my Nx project. I have installed it as a development dependency.
When I run it through NPX, as in
npx nxpm-stack lint
, it works just fine.However, if I try to run it with
nxpm-stack lint
, it throws "nxpm-stack is not recognized...". I even installed the library globally, but I still get same error.Do you know how can I fix this, so I don't have to run the script from NPX on every commit, but instead have it installed in my machine?