env: node: No such file or directory

Nerijus Gudas January 19, 2016

Every time I try to  commit, pull or push SourceTree app prompts this weird error. 
 
It started happening when I have changed my default node version on my NVM (node version manager) on my Mac.
Screen Shot 2016-01-20 at 10.04.01.png

Git works just fine from the command line. So it is only on SourceTree
 

4 answers

6 votes
Pulkit Singhal August 23, 2016

The right answer is available here:

https://answers.atlassian.com/questions/140339/answers/32030983
Shane Faulkner December 27, 2019

bad link

0 votes
Vitaliy Makovyak March 30, 2021

Run "/Applications/SourceTree.app/Contents/MacOS/Sourcetree" from terminal instead of running launcher. It works for me. Found the solution on stack overflow

0 votes
Nerijus Gudas July 24, 2016

Hi yes. @Dhairya Dhairya, it was my git hooks - i had custom git hooks that did check lint before allowing commit. Source tree couldn't handle custom feedback.

I removed all custom git hooks to fix this. Which was technically not solution, since I had to check linting manually. Source tree actually got to me. 

I switched to CLI git and started using "GitKreken" (pretty intersting ui). 

0 votes
Dhairya Dhairya July 22, 2016

@Nerijus Gudas any luck to solve this? Currently, i am facing this problem too.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events