node: fix test for external npm

Closes #15315.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>