Most installation methods for Node.js require the administrator password. But, if you don’t have admin access, you can manually install a specific Node.js version for your user without administrative privileges.
Here are the steps:
1. Download Node.js Binary:
– Visit the Node.js download page(https://nodejs.org/en/download/).
– Choose the LTS (Long-Term Support) version that you want to install.
– Download the binary version (not the .msi installer).
2. Extract Node.js:
– Create a folder where you want to install Node.js (e.g., `%userprofile%Applicationsnodejs-lts`).
– Extract the downloaded Node.js binary (node.exe) into this folder.
3. Add Node.js to PATH:
– Add the path of the Node.js folder to your PATH environment variable:
– Press Win + R, type `rundll32 sysdm.cpl,EditEnvironmentVariables`, and hit Enter.
– In the System Properties window, click Environment Variables.
– Under User variables, find the Path variable and click Edit.
– Add the path to your Node.js folder (e.g., `%userprofile%Applicationsnodejs-lts`).
– Click OK to save the changes.