nvm
nvm copied to clipboard
Changed prefix check to work in case NVM_DIR is a link
When NVM_DIR is a link, nvm mistakenly returns the error
nvm is not compatible with the npm config "prefix" option: currently set to "/data/jenkins-misc/nvm/versions/node/v8.10.0"
Run npm config delete prefix or nvm use --delete-prefix v8.10.0 to unset it.
With this fix nvm will check correctly that the prefix is inside the NVM_DIR
Duplicate of #2045.
@ljharb is there anything missing?
@GolanTrevize10 this is great, but it needs a test. can we add one?
@GolanTrevize10 any chance you're able to add a test?