get npm and node pid