How to install NodeJS LTS on Windows as a local user (without admin rights)
UPDATE 10/2018
On Node's download page referenced in step 1. there is now a .zip archive download which contains both the nodejs executable and npm. Unpacking that to a suitable path and adding this path to your PATH environment variable (step 2.) will give you both node and npm (so you can skip steps 3. - 6.).
Let say you want to install it into %userprofile%\Applications\nodejs-lts
, let's name it <NODE_PATH>
.
-
Download the LTS
node.exe
binary for Windows and copy it to<NODE_PATH>
. -
Add
<NODE_PATH>
to yourPATH
environment variable (set PATH=<NODE_PATH>;%PATH%
or using Windows user interface) -
Download the stable at
https://registry.npmjs.org/npm/-/npm-{VERSION}.tgz
npm package (following the documentation) -
Unzip the
npm-{VERSION}.tgz
anywhere (using 7zip for example) -
Launch a
cmd
andcd
into the place where you have unzipped npm -
Execute:
node cli.js install -gf
ornode bin/npm-cli.js install npm -gf
on certain versions (thanks to this comment)
The last command is specified in the Makefile
for target install
, target which the README.md
invites to execute when manually installing.
The nodejs version of 6.11 LTS and later seems to be easier to install, because npm is already included.
- Download the node.js LTS binary for Windows and extract it to your desired location
- Add the path of the nodejs folder to the PATH environment variable:
(Shortcut winkey+R and enter:
rundll32 sysdm.cpl,EditEnvironmentVariables
) - Open a new command window (winkey+R and type
cmd
) - Type
node -v
andnpm -v
to verify the installation