Set up NodeJS without Administrator Right in 2023

Yu-Ming, CHANG (he/him)
2 min readSep 24, 2023

Do you want to write scripts but you don’t have administrator right on your corporate laptop? This is how I work around it in 2023.

Who should read this article

  • You does not work as a developer
  • You plan to write some code to improve your happiness at work
  • You don’t have administrator right on your corporate-managed laptop
  • Your corporate laptop is Windows
  • You don’t plan to submit an internal ticket, which might requires you to provide business justifications and you might get rejected as long as you don’t hold a developer title

What is our target

We could write Node.js application through VSCode using corporate-managed Windows laptop without administrator right.

How to set up

  1. Download the User Installer version of VSCode through https://code.visualstudio.com/download. This is a portable version of VSCode that does not require administrator right to install
  2. Download the binary version of Node.js through https://nodejs.org/en/download. Extract the content out from the zip file to your computer.
  3. Create a folder in any path you want. This folder will later becomes the reference to your systemPATH variable
  4. Move node.exe from step 2 to the folder you created
  5. Move npm.cmd from step 2 to the folder you created
  6. Move npm_modules/npm from step 2 to the folder you created
  7. Open the “Run” dialog
  8. Types rundll32 sysdm.cpl,EditEnvironmentVariables into Run dialog and execute. This would opens Environment Variables dialog for you, even your organization limit your access to it
  9. Add the path of the folder you created in step 2 to the Path variable under current user account
  10. Verify the setup by entering node -v and npm -v into command prompt. If it returns the node version and npm version in the CLI, then it means we success. Before testing, ensure you close all CLI, including the command prompt in VSCode

Now you could enjoy the wonder of node.js in your corporate laptop without administrator right!

--

--

Yu-Ming, CHANG (he/him)

I enjoy the positive mind flow when writing code to solve a problem. This is my journey to become a software developer, though now working as a product owner