见鬼了啊,为什么我 git commit 会报 npm ERR! Missing script: "tsc-verify",就没法提交了, google 都搜不到这个错,求助一下 v 友们

查看 40|回复 2
作者:fyxtc   
diff 显示只改了 package.json, package-lock.json 和一个 tsx 文件
npm ERR! Missing script: "tsc-verify"
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! /Users/hikaru/.npm/_logs/2023-05-30T03_25_00_899Z-debug-0.log
Errors encountered when running pre-commit script. Won't commit.
Review your changes and try again.
没法提交上去了

npm, err, script, run

izumiiAoba   
会不会是有 git hook 调用了 `npm run tsc-verify`,然后可能你没有装包所以会报这个错误。
可以看下 package.json 里面这个命令在不在,或者试下自己手动能不能 run
alteremliu   
git hook 吧
您需要登录后才可以回帖 登录 | 立即注册

返回顶部