【问题标题】:Error trying to git commit尝试 git commit 时出错
【发布时间】:2018-03-03 12:20:20
【问题描述】:

当我输入:git commit . 我得到这个错误:

'grunt' is not recognized as an internal or external command, operable program or batch file.

我不知道“咕噜”引用来自哪里,但这是我在尝试提交时遇到的错误。关于如何修复或我可以从哪里开始寻找问题的任何想法?

【问题讨论】:

  • 我也不知道grunt 与此有什么关系。你能发布你实际运行的整个命令吗?
  • 看起来 grunt 不再全局安装。试试npm install -g grunt-cli
  • 抱歉,我删除了 '.'发布问题时错误地,整个命令是“git commit”。

标签: git gruntjs githooks git-commit


【解决方案1】:

我认为该项目可能包含一些依赖 grunt 的 git 钩子,可能是出于 linting 的目的。您应该安装 grunt 和任何其他需要的节点模块。像这样:

npm install -g grunt

然后(如果尚未完成,则在项目文件夹中):

npm install 

【讨论】:

    猜你喜欢
    • 2016-06-26
    • 1970-01-01
    • 2021-07-04
    • 2016-12-04
    • 2012-07-27
    • 1970-01-01
    • 1970-01-01
    • 2018-06-06
    • 1970-01-01
    相关资源
    最近更新 更多