I\'m trying to run an existing React Native project that uses Metro Bundler. My operating system is Ubuntu 20.04 and I\'ve tried to run the app both on a physical Android device
In my case I was trying to use Husky
and this error occurs:
husky > commit-msg (node v15.6.0)
npm ERR! cb.apply is not a function
npm ERR! A complete log of this run can be found in:
npm ERR! ~/.npm/_logs/2021-01-24T06_04_04_218Z-debug.log
>>> Installation [ 'commitlint@latest' ] fail with code 1 <<<
husky > commit-msg hook failed (add --no-verify to bypass)
I run the command below and problem was solved
npm i -D commitlint