copied option 3 from nodejs installer script because that method worked for my system best.
debugging