Override System Environment variable path in windows (not admin access)

sij picture sij · Mar 14, 2017 · Viewed 7.4k times · Source

Issue is very peculiar, I have a version of NodeJS installed in Windows (in program files x86) and a newer version of software downloaded and exe is extracted.

The installed NodeJS (node.exe) 's path is included in system path variable. I added the extracted path to user environment path variable. After doing my bit of RTFM I came to know that in case path variable both system and user environment variables are combined and the system gets the precedence.

Is there any way I can override (or nullify) the system variable's PATH with user variable's path ? or can the precedence of reading variables be changed ?

Answer

mihai picture mihai · Mar 14, 2017

In cmd, type

set PATH=D:\Path_To_Local_Folder;%PATH%
node

It will start node from your local folder.