Install Node.js on Windows Without Admin Access

Published: Jul 13, 2020
Updated: Feb 16, 2024

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 PATH.

This will install node version 14.16.0

Install #

  1. Get familiar with Windows Environment Variables in Command Prompt

  2. Download a zip of the 64-bit Windows binary https://nodejs.org/dist/v14.16.0/node-v14.16.0-win-x64.zip

  3. Create folder %USERPROFILE%\bin\nodejs, then extract the zip contents into this folder

  4. 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%"
    
  5. Restart Command Prompt

  6. Confirm installation

     node --version
     npm --version
    

Known Issues #

@cgronseth opened an issue where he hit the character limit max. Turns out the setx docs mention this too.

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)
Reply by email