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

How to prevent node download or override default version #35

Open
robdawsonthales opened this issue Aug 24, 2018 · 2 comments
Open

How to prevent node download or override default version #35

robdawsonthales opened this issue Aug 24, 2018 · 2 comments

Comments

@robdawsonthales
Copy link

Is there some way to allow karma to use the version of node that is installed locally, rather than downloading v4.2.3? I can see that you set various options here but I don't see any way to override them.

My build is currently failing because one of the libraries I depend on uses some ES6 syntax that node v4 doesn't understand, so I either need to have the build download a more recent node version, or use the local install.

@robdawsonthales
Copy link
Author

This seems fairly urgent as the latest version of karma has dropped support for node v4

@jthomperoo
Copy link

jthomperoo commented Sep 18, 2018

Hi, I was looking into this and have found a way to change the version of node being used, thanks to this stack overflow post, just add the following to your build.gradle file, putting in whichever node version suits you:
node {
// Version of node to use.
version = '8.0.0'
}

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