node: make npm installation optional

Change-Id: I47e590ac14dfc12c9d85586b3fe99a7b672d20ed