Windows10 git commit报错node: command not found解决办法

在使用git准备提交文件时,报错:

Commit failed with error
    0 file committed, 1 file failed to commit: 上传车辆同行记录;
    .git/hooks/pre-commit: line 32: node: command not found

解决办法,在用户目录下,新建.bashrc文件,编辑内容如下:

$ vim ~/.bashrc
# add in .bashrc
PATH=$PATH:/c/Program\ Files\ \(x86\)/nodejs

Reference

  1. https://github.com/observing/pre-commit/issues/139
© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容