conditional npm install