Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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
Contributor
August 23, 2016

The right answer is available here:

https://answers.atlassian.com/questions/140339/answers/32030983
Shane Faulkner
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 27, 2019

bad link

0 votes
Vitaliy Makovyak
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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