We all feel the great pain of installing any software when working on an office workstation or laptop. We will not be given admin rights and almost all of the software requires admin privileges to get installed in Windows PC. Because they require to have an entry in the RegistryEditor and need to write data under some system folders and etc.,
So here’s some trick to get the nodeJS one of the most wdely used programming language and npm, the nodeJS package manager in any Windows machine without the admin-rights.
Step 1: Download the nodeJS.exe file from https://nodejs.org/en/download/ by clicking on All download options
and choose the right Windows architecture and download it.
Step 2: Choose a folder to for nodeJS. For example, C:\ProgramData\Applications\nodejs
and save the downloaded file under this folder.
Step 3: Add the nodeJS folder to the environment variable PATH
by executing the below command in the cmd.exe
, or using the User Interface.
set PATH=C:\ProgramData\Applications\nodejs;%PATH%
Step 4: Now download the stable version of npm
from the below link by replacing the version.
https://registry.npmjs.org/npm/-/npm-{VERSION}.tgz
For example for npm version 6.4.1, https://registry.npmjs.org/npm/-/npm-6.4.1.tgz
Step 5: Now unzip the downloaded npm file anywhere and cd
into package
folder.
Step 6: Execute the following command in the cmd.exe
node bin/npm-cli.js install npm -gf
Step 7: Execute the following commands to verify the installation of nodeJS and npm.
node -v
npm -v
Well, you have installed nideJS and npm successfully in a Windows machine without admin rights. Its time to celebrate now.
REF: https://medium.com/@github.gkarthiks/how-to-install-nodejs-and-npm-in-non-admin-access-windows-machines-102fd461b54c
No comments:
Post a Comment