gradle-node-plugin icon indicating copy to clipboard operation
gradle-node-plugin copied to clipboard

How to use npm ci instead of npm install?

Open EugenCepoi opened this issue 6 years ago • 3 comments

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?

EugenCepoi avatar Jan 14 '20 00:01 EugenCepoi

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

deepy avatar Jan 16 '20 11:01 deepy

Thanks, this is useful! Started using your fork.

EugenCepoi avatar Jan 21 '20 18:01 EugenCepoi

The above "fork" is what you get with the ID "com.github.node-gradle.node" from the gradle plugin repository.

matthiaskraaz avatar Nov 24 '23 04:11 matthiaskraaz