npm install should take packageDir into account