Fixed bug when npm install fails