srs / gradle-node-plugin

Gradle plugin for integrating NodeJS in your build. :rocket:
Apache License 2.0
867 stars 210 forks source link

download = false #374

Open SkylerLutz opened 3 years ago

SkylerLutz commented 3 years ago

Hi,

I don't fully understand this comment in the README: // If false, it will try to use globally installed node. download = true

Can someone explain in more detail what this means? Specifically:

Thanks

deepy commented 3 years ago

If you set download to true this plugin will download node and npm using the versions provided in the configuration, if you set it to false you need to have the tools installed and on PATH, nvm is probably one of the easier ways to do that.

If it fails an error message will be printed, detailing the failure and failing the build. You can try this by setting version to some invalid value.

However, this plugin is currently unmaintained, there's a fork (without the grunt/gulp support) and the full history is available at this issue https://github.com/srs/gradle-node-plugin/issues/315

SkylerLutz commented 3 years ago

Thanks for that, @deepy -- I'll switch over to the fork. Follow up question on nvm: how would I go about running nvm use x.x.x from gradle?