const savedPath = process . env . Path ; returns { void } export function removePath ( ) { Object . defineProperty ( process . env , 'PATH' , { value : undefined } ) ; Object . defineProperty ( process . env , 'path' , { value : undefined } ) ; delete process . env . PATH ; delete process . env . path ; process . env . Path = savedPath ; }