Repository navigation
Why are installations limited to %LOCALAPPDATA% in v2?
#1414
|
Several issues (#1383, #1402, #1413, #1420) have been opened around this topic, so I wanted to address it. |
Replies: 1 comment
|
Yes, NVM for Windows community build installations are limited to Why did this change from v1?Basically, a high concentration of v1 issues were opened due to custom installation paths. Many of these issues were filed with a sense of urgency (i.e. demand) for using NVM for Windows in controlled (corporate) environments. The issues were almost always environment related, not actual bugs. Most fell in the realm of "free enterprise support", which simply isn't sustainable at the scale of this project. These types of issues are why I started Author Software and why we've "separated concerns" between community and commercial certified builds. Version 2 implements far stronger security mechanisms to combat exploitable areas of v1. This includes managed DACL and ABI guarantees related to the installation root. These are not practical with custom installation directories. Note The v1 guidance for installing to custom directories was to avoid protected directories. Symlink creation is often blocked in protected directories. v2 doesn't use symlinks, except in one documented edge case. The old guidance is not relevant to v2. How is this being addressed going forward?Users still have control over most aspects of the installation. We've just separated concerns and clarified the scope. NVM for Windows v2 is available in two different builds.
The main difference is the architecture. Community build installations are limited to Why aren't user-specified directories appropriate installation roots?It's not that Rather than fight Windows native permissions, we designed v2 to work within it. The How does it work in v2?The main installation files, like Note In simple terms, nvm-windows makes sure nobody messes with your Node stuff. No malware or errant agent can change your node executable or npm modules without NVM for Windows knowing about it (and making you aware of it). Here's a simplistic example:
Important BOTTOM LINE: the installation root is part of the overall security posture nvm-windows provides. |

Yes, NVM for Windows community build installations are limited to
%LOCALAPPDATA%. The Node.js installation directory (where your versions are stored) is still configurable.Why did this change from v1?
Basically, a high concentration of v1 issues were opened due to custom installation paths. Many of these issues were filed with a sense of urgency (i.e. demand) for using NVM for Windows in controlled (corporate) environments. The issues were almost always environment related, not actual bugs. Most fell in the realm of "free enterprise support", which simply isn't sustainable at the scale of this project. These types of issues are why I started Author Software and why we've "separated conce…