Only install node and npm when required

As above.