When trying to make a commit through SourceTree I get an error that reads:
The engine "node" is incompatible with this module. Expected version "^14.16.1". Got "18.3.0"
When I run nvm current node -v I get v14.16.1
When I run nvm ls I do not even see 18.3.0
My guess here is that SourceTree is looking at the "system" node version.
I have this in .zshrc which I thought worked this nvm stuff out.
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
I also called which node and tried adding the result to my path without any change.
How do I tell SourceTree to look at a specific version of node to make commits?
I should add that I am able to commit on the command line and then use SourceTree to push.
If I bypass the commit hooks I am able to make a commit with SourceTree. Suboptimal to be sure. I would like to sort out how to get SourceTree to see the correct node version on commit.