node: set npm prefix when installing.

References #29138.