-
Notifications
You must be signed in to change notification settings - Fork 26
Is it possible to force Karma to use a local node install, instead of the globally installed node? #28
Comments
The following is working fine on a project i have here:
|
@asa-git Thank you. I tried that but no cigar. pom.xml:
when running mvn install I get the following output:
but if I run the same command line manually, it works!
I am stumped. |
here is an extract from the pom I updated to test your issue (I'm on windows)
Note that I'm not referring to the karma script in the Also, the generation of the path to execute is handled here: https://github.com/karma-runner/maven-karma-plugin/blob/master/src/main/java/com/kelveden/karma/KarmaUtils.java#L76 Hopefully that will fix your issue in your mac env. |
It seems to be a problem from Unix with ProcessBuilder : On windows, no problems, but on linux So for now on linux, using a local karma is possible, but not using a local node and a local karma If we want it to work, |
@kelveden Any updates on this? |
Sorry folks, I'd almost forgotten that this project even existed. It has been years since I even used it let alone looked at the code. I barely use maven these days. So I'm not in a good position to comment on the above, sorry. I'd suggest either forking and fixing. Alternatively, something I should have done years ago was to hand over control of this project to someone with more use for it - assuming that there is still the interest in it. If that's anyone here then let me know. Have added a notice to the README explaining as much. |
I have post a pull request with the correction I am using locally. If you want to find about it : https://github.com/silk-bahamut/maven-karma-plugin |
If @silk-bahamut wants to take over, seems fair as he has a PR pending. |
To anyone that is still using this plugin and has this problem, I recommend the frontend-maven-plugin. You can replace this functionality and choose the node/npm runtime to execute with. https://github.com/eirslett/frontend-maven-plugin#running-karma |
See the following: karma-runner/karma#1975
I would like to achieve the same thing from the maven-karma-plugin
Thanks!
The text was updated successfully, but these errors were encountered: