Commit failed – exit code 1 received, with output: ‘>running pre-commit hook: npm run precommit (Fixed)

Commit failed – exit code 1 received, with output: ‘> running pre-commit hook: npm run precommit

Solution:

delete the pre-commit file and go to the project.git folder — hooks — delete, and then commit the code again.

Reference to address: https://blog.csdn.net/m18633778874/article/details/87448059?Ops_request_misc = % 257 b % 2522 request 2522% % 255 fid % 253 a 2522% % 2522% % 2522160532515819724835827479% % 2522 SCM 252 c 253 a % 252220140713.130102334 PC % 255 fall. The 2522% % 257 d & amp; request_id=160532515819724835827479& biz_id=0& utm_medium=distribute.pc_search_result.none-task-blog-2allfirst_rank_v2~rank_v28-1-87448059.pc_first_rank_v2_rank_v28& Utm_term = Commit + failed + + exit + code + 1 + re& SPM = 1018.2118.3001.4449

Read More: