I am trying to run another NodeJS version with nvm but getting this error:
$ nvm use v4.2.4
nvm is not compatible with the npm config \"prefix\
Let me describe my situation.
First, check the current config
$ nvm use --delete-prefix v10.7.0
$ npm config list
Then, I found the error config in output:
; project config /mnt/c/Users/paul/.npmrc
prefix = "/mnt/c/Users/paul/C:\\Program Files\\nodejs"
So, I deleted the C:\\Program Files\\nodejs in /mnt/c/Users/paul/.npmrc.