Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

download = false #374

Open
SkylerLutz opened this issue Feb 4, 2021 · 2 comments
Open

download = false #374

SkylerLutz opened this issue Feb 4, 2021 · 2 comments

Comments

@SkylerLutz
Copy link

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:

  • Does nvm need to be installed on the host machine for download = false to work?
  • Does it try to use the version specified in the version field?
  • How does it "try"?
  • What happens if "trying" fails?

Thanks

@deepy
Copy link

deepy commented Feb 4, 2021

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 #315

@SkylerLutz
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants