You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using npm install we get slower installation and potential differences between installations (that was surprise to me too, even after introducing package-lock.json).
In our projects we've recently moved to use npm ci and we have this orb's job to run frontend building and hence this is the only one left that still uses npm install.
Suggested solution
Using npm ci could be better approach, but changing to that would exclude cases that still wants to stick with npm install for some cases.
Giving devs an option to specify wether to prefer npm install or npm ci would be great.
The problem with npm ci is that it always downloads all dependencies. npm install might be slower on the initial build, but afterwards it's pretty much instantaneous since it keeps existing dependencies.
Also, if we use npm ci, we should bypass the CircleCI caching, as it would be useless.
Problem
Using
npm install
we get slower installation and potential differences between installations (that was surprise to me too, even after introducingpackage-lock.json
).Currently we have one job that uses
npm install
, that'snpm-install-build
-job in https://github.com/wunderio/silta-circleci/blob/master/orb.yml#L350.In our projects we've recently moved to use
npm ci
and we have this orb's job to run frontend building and hence this is the only one left that still usesnpm install
.Suggested solution
Using
npm ci
could be better approach, but changing to that would exclude cases that still wants to stick withnpm install
for some cases.Giving devs an option to specify wether to prefer
npm install
ornpm ci
would be great.Read more about
npm ci
: https://blog.npmjs.org/post/171556855892/introducing-npm-ci-for-faster-more-reliableThe text was updated successfully, but these errors were encountered: