change node.js installation directory
I downloaded the windows msi of node.js v5.6.0 64bit. When I execute it, it popped up a warning "Invalid E: drive" and shut down. There is no way to change the installation drive. I don't have E: drive, instead I want to install to an external drive F:. I think there was a previous installation on E: drive when my external drive was set as E.
This worked for me. Locate
HKEY_LOCAL_MACHINE\SOFTWARE\Node.js
There you will find an InstallPath
property. Rename the drive to whatever valid drive on your system, then reinstall and install node again.
Open a Command Prompt and run:
subst E: C:/
Then if you would prefer to install it to drive F: select that drive during the NodeJS installation.