![]() ![]() Install the second version you want to use, and copy the nodejs file to the same place, say c:\nodejsbackups\v14\nodejs.Copy the c:\Program Files\nodejs folder somewhere where it won't get deleted on a new install: say c:\nodejsbackups\v10\nodejs if it's version 10. With admin, install the first version you want to use.Then you can switch versions without admin rights by replacing the folder. The overall idea is to put the nodejs folder somewhere where you have write access, point the system path at it, and it should run. However, there is a somewhat clunky workaround. Unfortunately both writing to c:\Program Files and changing the system path require admin rights. Broadly you need two things to get node working on Windows: the nodejs folder with the executable in it, by default c:\Program Files\nodejs, and the path to that to be on the system path before any other node paths. We have tried using something called RunAsTool to try to let me run NVM as an admin, but this doesn't work because of its limitations.Īnother option would be to grant me admin rights to any files and directories needed for NVM to function, but there is no list of those files/folders that I can find.Ī third option would be to simply install two different versions, but when you install a new version, the previous version gets removed, even if it's installed under an unusual path like C:\Program Files\node16. To be clear, the admins are willing to grant me specific privileges or install any software needed in order to get this working. Is the only way to uninstall the installed version and install a new version every time? Is there any way I can have v10 under C:\Program Files\node10, and v14 under C:\Program Files\node14? ![]() I need to be able to install multiple different versions of Node.js because different projects under the same company use different versions of Node.js as a necessity. I can't use windows-nvm because it requires admin privileges, and I'm working on a company laptop as a standard user. ![]() I haven't been able to find any questions/answers regarding how to install two versions of Node.js (such as v10 and v14) on the same computer without using NVM. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |