The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with SourceTree complaining about node when using nvm

Alexis Mangin
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!
May 25, 2017

Hello,

I have installed node via nvm on my mac computer. 

$ which node
/Users/me/.nvm/versions/node/v7.10.0/bin/node

The node folder is available in $PATH and I can use it directly in the terminal

$ echo $PATH
/Users/me/.nvm/versions/node/v7.10.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

Although, I have an error in SourceTree complaining about node not available every time I try to commit or switch branches.

env: node: No such file or directory

Screen Shot 2017-05-25 at 16.18.25.png

I'm not sure how I can fix this problem? It's quite annoying.

I use the latest version of SourceTree: 2.5.1


Thanks.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Lemoo
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!
January 14, 2021

me too.

But I use nvs

Yarn and node both error when I commit , the pre-commit hook maybe a reason, but I don't know how to solve it.

TAGS
AUG Leaders

Atlassian Community Events