TypeError: cb.apply is not a function

后端 未结 5 940
别跟我提以往
别跟我提以往 2021-02-04 03:46

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

5条回答
  •  无人共我
    2021-02-04 04:34

    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
    

提交回复
热议问题