Run composer and npm in mocked mode and real mode