commit后报错
来源:4-2 使用 commitlint 规范 commit 信息
qq_慕前端859935
2023-03-03
$ git commit -m "frat: 4-2"
npm ERR! Missing script: "test"
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR! npm run
npm ERR! A complete log of this run can be found in:
npm ERR! D:\devTools\nodejs\node_cache_logs\2023-03-03T12_45_28_074Z-debug-0.log
husky - pre-commit hook exited with code 1 (error)
写回答
1回答
-
one_pieces
2023-03-03
同学你好,这里提示少了一个 test script,可以在 package.json 里的 npm script 加一个 test script,或者把 .husky/pre-commit 里面的 npm test 先去掉
00
相似问题