删除package.json 里 " pre-commit": "npm run lint-staged" 这个对象就可以。 转载于:https://www.cnblogs.com/xlfdqf/p/11082040.html