Skip to content Skip to footer

How to use Node and NPM without installation or admin rights

There are a lot of blog posts explaining this already, but most of them didn’t work for me. They miss one critical step, in this blog post I am going to provide instructions step by step how to use Node and NPM without installation or admin rights. I am going to provide the instructions for windows; we can follow the same process for other operating systems (macOS, Linux).

Step 1: Get node binary (node.exe) from nodejs.org site

  • Go to https://nodejs.org/en/download/ site, then from the downloads table download the  32-bit or 64-bit binary/binaries (not installer files) depending on your operating system.
  • Now copy the file node.exe to your favourite location. In my case, I created a folder named nodejs under the Tools folder in the root of my C drive (C:\Tools\nodejs\).

Step 2: Get the NPM

  • Go to https://github.com/npm/npm/releases site, then download the latest stable version of NPM. You can find the zip file under downloads section at the bottom of the page.
  • Extract the zip file and rename the extracted folder to npm.
  • Now go to C:\Tools\nodejs\ (in your case which ever the folder you copied the node.exe file), create a folder called, node_modules then copy the entire folder npm folder from the previous step the node_modules folder.

Step 3: Copy npm.cmd beside the node.exe

  • This is the very important step everyone misses, go to C:\Tools\nodejs\node_modules\npm\bin\ folder. Under the bin folder you will find the npm.cmd file.
  • Copy the npm.cmd file and place it beside the node.exe from step 1. In my case I am copying the npm.cmd file to C:\Tools\nodejs\ folder.

Step 4: Configure the PATH

  • We need add the node.exe and npm.cmd to system path, so that we can access them from any where.
  • Now append the path C:\Tools\nodejs; to PATH variable in Environment Variables.
  • We can access the Environment Variables dialog, by right clicking on the Computer > Properties > Advanced system settings > Advanced tab > Environment Variables.
  • Incase if you don’t have permission to access Environment Variables dialog, simply type the following command in Run dialog rundll32 sysdm.cpl,EditEnvironmentVariables, this will open the Environment Variables dialog.

Step 5: Verify the nodejs and npm setup

  • Go to command line then type node -v then npm -v. These commands should display the currently configured nodejs and npm versions respectively.
command prompt

We configured the node and npm without installation or admin rights, now you can happily use them.

42 Comments

  • Michael Woodard
    Posted Dec 6, 2017 at 2:05 am

    Hi,

    I normally don’t take the time to leave comments or anything beyond just sifting through information when I am trying to find a solution to one of my many problems… but I had to say THANK YOU!
    I am by no means a developer, but I have been trying to learn a little here and there – and it is like drinking from a fire hose. I thought I found some interesting solutions and they all required node and npm, but I was not able to install them because of admin rights. You totally just broke it down perfectly for me and it worked on the first attempt.

    Thank you so much!

  • Ram
    Posted Dec 13, 2017 at 12:00 pm

    nice tutorial for installing latest version without admin rights and exe file

  • Lesouth
    Posted May 30, 2018 at 3:36 pm

    Thanks a lot, works perfectly. I was getting socket error as I was running it from a network drive. I moved it to c:\ local drive and it works..

  • Stefano
    Posted Aug 9, 2018 at 1:56 pm

    Nice! Thank you!

  • Mithun
    Posted Mar 5, 2019 at 4:14 am

    superb thanks a lot

  • javier
    Posted Apr 17, 2019 at 11:31 pm

    Thanks for this tip, was really usefull for me !!

  • Nicolas D
    Posted Apr 29, 2019 at 10:16 pm

    Hello Shravan,

    Thank you for your post.
    It's very usefull, complete and easy to follow.
    I succeeded to install Node + NPM on a very locked computer !

    Kindly Regards,
    Nicolas D.

  • Adam
    Posted May 8, 2019 at 6:22 am

    I can't make changes to environment variables without admin rights.

  • Adam
    Posted May 8, 2019 at 6:45 am

    OK please disregard that last comment. I was able to update the path variable with by using "rundll32 sysdm.cpl,EditEnvironmentVariables" as you specified this article. I spoke too soon. Thank you for this incredibly concise and valuable tutorial!

  • Richang Sharma
    Posted Jul 18, 2019 at 12:08 pm

    Thank You so much Shravan, this is the best tutorial over the matter on the internet.

  • Saneth
    Posted Jul 19, 2019 at 12:00 pm

    I don't have access to edit system variables

  • Ravinder Kumar
    Posted Jul 25, 2019 at 12:18 pm

    You are awesome. It worked for me.

  • ravindra kumar mathankar
    Posted Sep 11, 2019 at 11:46 am

    Thanks a lot, I could setup it.

  • Troy
    Posted Sep 25, 2019 at 7:38 pm

    I never take the time to write a comment, but you deserve all the praise! This was by far the easiest way to do this. I tried several different methods to accomplish this task, but this was the only one that worked. Thank you so much!

  • Ashish Agarwal
    Posted Oct 3, 2019 at 9:29 pm

    Thank you!!

  • rakesh
    Posted Oct 23, 2019 at 7:52 pm

    To Change Environment variables you need admin rights

  • Adailton
    Posted Oct 30, 2019 at 7:34 pm

    Thank you so much man, this tutorial help me a lot

    Now im your fan

  • Meh
    Posted Nov 15, 2019 at 2:10 pm

    To access Computer > Properties > Advanced system settings > Advanced tab > Environment Variables you need admin rights. This doesn't work

  • Nate
    Posted Dec 13, 2019 at 1:44 pm

    NodeJS binaries appear to be bundled with npm now so may only need do step 1 and 4. Thanks this is a great help.

  • Nehorai
    Posted Dec 19, 2019 at 8:37 pm

    10x a lot' the post was very helpful.

  • Brian
    Posted Jan 10, 2020 at 3:45 am

    Worked in January 2020! The latest node install comes with NPM installed so I did not have to install it separately, but everything else worked. Thanks man. Life is tough w/o admin rights.

  • Thiago Marques
    Posted Jan 24, 2020 at 9:05 pm

    Thank you!

  • Arun Nagarajan
    Posted Feb 17, 2020 at 11:23 pm

    npm install still does not work
    I have to run cmd as "Administrator". I dont have that access.

  • Dan
    Posted Mar 10, 2020 at 2:07 pm

    Everything stops at point 4 when you need to Configure the Path.

    In order to access Environment Variables you need to have admin rights.

  • Paulo
    Posted Mar 10, 2020 at 9:31 pm

    Very good. Saved my week. Congratulations

  • FusedPat
    Posted Mar 13, 2020 at 6:11 am

    That's really simple and precise

  • Post Author
    Shravan Kumar Kasagoni
    Posted May 1, 2020 at 10:00 pm

    If you don’t have permission to access Environment Variables dialog, simply type the following command in Run dialog rundll32 sysdm.cpl,EditEnvironmentVariables, this will open the Environment Variables dialog.

  • Post Author
    Shravan Kumar Kasagoni
    Posted May 1, 2020 at 10:02 pm

    If you don’t have permission to access Environment Variables dialog, simply type the following command in Run dialog rundll32 sysdm.cpl,EditEnvironmentVariables, this will open the Environment Variables dialog.

  • Post Author
    Shravan Kumar Kasagoni
    Posted May 1, 2020 at 10:05 pm

    If you don’t have permission to access Environment Variables dialog, simply type the following command in Run dialog rundll32 sysdm.cpl,EditEnvironmentVariables, this will open the Environment Variables dialog.

  • Post Author
    Shravan Kumar Kasagoni
    Posted May 1, 2020 at 10:06 pm

    If you don’t have permission to access Environment Variables dialog, simply type the following command in Run dialog rundll32 sysdm.cpl,EditEnvironmentVariables, this will open the Environment Variables dialog.

  • Post Author
    Shravan Kumar Kasagoni
    Posted May 1, 2020 at 10:11 pm

    If you don’t have permission to access Environment Variables dialog, simply type the following command in Run dialog rundll32 sysdm.cpl,EditEnvironmentVariables, this will open the Environment Variables dialog.

  • LazyLama
    Posted May 31, 2020 at 2:32 am

    This is nice.. that particular commad: rundll32 sysdm.cpl,EditEnvironmentVariables
    Thats the icing on the cake that was never available to me before.

  • aarti
    Posted Jul 27, 2020 at 1:36 pm

    its really help me. Thank you!!!!

  • Kingsley Nwadi
    Posted Aug 27, 2020 at 5:07 pm

    Many Thanks. I followed your advice step by step and it worked like magic.
    Had to use Node version 11 with Npm version 6.2.0-next.1
    Thank you once again.

  • ArmenX
    Posted Oct 12, 2020 at 11:02 pm

    Thank you Sir !!!

  • Prateek
    Posted Jan 21, 2021 at 1:11 pm

    This works perfectly Shravan. Thanks!

  • Bagus
    Posted Feb 25, 2021 at 9:22 am

    Many Thanks! This is the first tutorial that guided me very well to install node js without admin right.
    I am not a programmer/developer, etc, so every single detail in the explanation means a lot to me.
    I am sorry for my English.
    Thanks!

  • Arnaud Brugnon
    Posted May 3, 2021 at 8:30 pm

    Well,

    It's been a while since a i didn't read a good documentation.
    Nice work here !

    It helps a lot

  • Peter Kosa
    Posted May 22, 2021 at 10:17 pm

    Hello there! I just wanted to say that this one actually worked! So thank you, now I can use node.js for much useful things! (And I don't need to ask the PC administrator to actually install it.)

  • Pleasure Ndhlovu
    Posted Jun 8, 2021 at 6:54 pm

    Great Solution👍

  • Keval
    Posted Jul 28, 2021 at 12:09 am

    Thank you!

  • Luís
    Posted Jul 24, 2022 at 8:21 pm

    Very useful, thank you!

Leave a comment

0/100