Install optimist and karma via npm