在使用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
用户目录是哪个目录 啊
C:\Users\你的用户名 Windows是这个吧
设置了,还是不行呀