Open andrewburgess opened 8 years ago
Sounds like something you can submit as a PR and test it with your setup to see if it makes a difference 👍
@knownasilya I've tried switching it in my local instance and I'm not seeing a change in the PATH
environment variable.
I'm not familiar with how Strider is architected. Where is the PATH environment variable set up? Trying to make that switch didn't seem to show any difference in the PATH
contents, nor did trying to set ret.env.PATH
.
Running a few more experiments, it looks like ret.path
is appended to a PATH
variable somewhere else in Strider (as in, all of those .bin
directories and the /usr/bin
are set elsewhere and then the additions from this plugin are appended afterwards).
Any ideas as to where I might be able to look?
I'm not sure if I've misconfigured something, but the
PATH
environment variable seems to be putting/usr/bin
in the middle, before theN_PREFIX
directory, which means the system level version ofnode
is used instead of the one just downloaded vian
Output of
$PATH
aftern
activates the version requestedI'm not sure where that
/usr/bin
comes from in the middle, but I'm wondering if maybe https://github.com/Strider-CD/strider-node/blob/master/worker.js#L82 needs to be flipped so that the new paths are prepended toret.path
instead of appended.