How to use npm ci instead of npm install?
EugenCepoi opened this issue · 3 comments
EugenCepoi commented
Using npm install
during a CI build is causing in my case several problems as it modifies the package-lock.json
file. Running npm ci
avoids that. How can I configure the gradle plugin to use npm ci
instead of npm install
?
deepy commented
This is one of the major features we've got in the fork node-gradle/gradle-node-plugin/blob/master/docs/faq.md#how-do-i-use-npm-ci-instead-of-npm-install
EugenCepoi commented
Thanks, this is useful! Started using your fork.
matthiaskraaz commented
The above "fork" is what you get with the ID "com.github.node-gradle.node" from the gradle plugin repository.