Path to Node.js

How to change path for D:…?

Assuming you mean to change drive to D just type
at the terminal to change drive from C to D

Have you tried cd d:, works for me.

EDIT: as @Subhan95 said you can use D: in the command prompt. If you are using Bash cd D: should work.