I guess, I have a very specific topic but perhaps someone can help me.
I gave multiple node version installed on my Win10 machine with the newest one (v11.12.0) in standard path environment variable. In my path variable is also a directory "batch" where I have several batch files, one of those is a node-switch.bat which adds the path to another node version as the first path in the path environment variable and also executes the corresponding nodevars.bat. With this, I can have multiple node version installed on my windows system and use whichever one I need for a project.
For one project I use node v08.16.0 and yarn as package manager. This works perfectly on the console with my current setup and batch files.
Now, when I want to commit and push my changes to Github, we execute some scripts. Some of them involve yarn (i.e. "yarn prettier --write"). This works totally fine in my console.
But in IntelliJ, the standard node version (v11.12.0) is executed. I guess, it's because git executes this and not IntelliJ (because in IntelliJ the yarn commands work fine). I totally understand, that git executes the standard node version as in git's context, the node version hasn't changed and nodevars.bat is not executed.
So my question is, can I change PATH variable for the loaded project in IntelliJ when it executes git(-hooks)?