Welcome to my website, have a nice day!
Dream it, Do it, Make it!

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
赞(0)
未经允许禁止转载:Ddmit » Windows10 git commit报错node: command not found解决办法

评论 抢沙发

登录

找回密码

注册