Use `npm ci` instead of `npm install` with CI

Hi @obernardovieira!

That’s a great article (Test smart contracts like a rockstar), it helped me a lot.

Did you try to use npm ci instead of npm install in .travis.yml? It is supposed to speed up CI.

1 Like

Hi @eMarchenko,

Welcome to the community :wave:

OpenZeppelin Contracts uses npm ci with Circle CI.

Hi @abcoathup!
probably I replied in a wrong direction initially…
I was asking about the article, and inside it the author suggested to use npm install in travis config. I was curious if I should rather use npm ci in my configs. If I’m correct then the author should probably update the article.

1 Like

Hi @eMarchenko,

I think you should use npm ci in your Travis CI config. Please note the caveats: https://docs.npmjs.com/cli/ci#description

@obernardovieira should we update the Travis CI config to use npm ci rather than npm install in Test smart contracts like a rockstar tutorial?