added check to node and npm before start