wfikz-iqaaa-aaaad-qenca-cai.icp0.io
Open in
urlscan Pro
2a0b:21c0:b002:2:5000:59ff:fead:c233
Public Scan
URL:
https://wfikz-iqaaa-aaaad-qenca-cai.icp0.io/posts/install-node-js-on-windows-without-admin-rights/index.html
Submission: On December 24 via api from US — Scanned from GB
Submission: On December 24 via api from US — Scanned from GB
Form analysis
0 forms found in the DOMText Content
Malware Werewolf * About * Blog * Projects * Challenges * Contact INSTALL NODE JS ON WINDOWS WITHOUT ADMIN RIGHTS November 18, 2022 2-minute read Node js -------------------------------------------------------------------------------- If you have your own laptop with admin rights, you don’t need to read this article further. On the contrary if you are working in an IT company where you can’t run any application with an admin account, it may save your time having Node js installed in a separate folder so you can freely change or update its content. I had an old version of Node js installed on my laptop and I needed to update it in order to use the Angular CLI, which is requiring a minimum version of Node js to work. SETTING THE ENVIRONMENT VARIABLES IN WINDOWS FOR NODE JS Download the Windows Binary and unzip its content in the C:\ drive or another folder that is easily accessible to you. The environment variables editor can also be launched with the following command from the Windows command-line prompt (CMD): C:\> rundll32 sysdm.cpl,EditEnvironmentVariables Now we need need to add a new variable to the Path variable inside the User variables. Just put the path where you unzipped the content of the Windows Binary. SETTING ANOTHER ENVIRONMENT VARIABLE FOR NG This step is not necessary, but as soon as you install a global package and you want to run it from the command line, you might get an error such as: 'ng' is not recognized as an internal or external command, operable program or batch file Assuming you don’t have admin rights, there’s a folder in Appdata which is holding the node modules being installed, simply put the following path in the system variables to solve the issue (put your username in the path): C:\Users\your username here\AppData\Roaming\npm% Just reopen again the CMD and you can again use both global packages and Node js from the command line without admin rights. TLDR This is the only working fix that I found without using admin rights, there are ways to solve the issue related to packages missing and not usable through command line like changing the Node js prefix, but they still require admin rights to work. * * * * * © 2019 - 2022 Malware Werewolf · Powered by Hugo & Coder - Privacy Policy