Install NodeJS on Windows Without Admin Access
Published: Jul 13, 2020 • Updated: Dec 1, 2021
Sometimes you need to install developer tools on a Windows machine, but you don’t have Admin access. How to get around this, you say? Well, instead of running an installer, you download the binaries you need then add them to your
This will install node version
Get familiar with Windows Environment Variables in Command Prompt
Download a zip of the 64-bit Windows binary https://nodejs.org/dist/v14.16.0/node-v14.16.0-win-x64.zip
%USERPROFILE%\bin\nodejs, then extract the zip contents into this folder
Open Command Prompt and set environment variables for your account
setx NODEJS_HOME "%USERPROFILE%\bin\nodejs\node-v14.16.0-win-x64" setx PATH "%NODEJS_HOME%;%PATH%"
Restart Command Prompt
node --version npm --version
Known Issues #
Be aware there’s a limit of 1024 characters when assigning contents to a variable using setx.
This means that the content is cropped if you go over 1024 characters, and that the cropped text is what’s applied to the target variable. If this cropped text is applied to an existing variable, it can result in loss of data previously held by the target variable.
He was able to resolve the issue by running this in PowerShell:
setx PATH ("%NODEJS_HOME%;"+[System.Environment]::GetEnvironmentVariables('User').Path)