-
Notifications
You must be signed in to change notification settings - Fork 121
global copy of phantomjs not found in 1.0.4 #168
Comments
VSTS is Visual Studio Team Services |
This was a problem for me as well. Ate up a couple days of my time. I also had to roll back to version 1.0.2 in order to get my VSTS builds working again. The only way I was able to figure it out was to diff the exact versions of the NPM modules installed between a passing build and a failing build. I'm a little surprised that there wasn't more specific / useful error information about this with the logging set to DEBUG. Here are the relevant logs from my VSTS build when this failed:
|
@silvioboehme I was coming across this same issue and found that if I change the Default Agent Queue in the Options section of my build that the Karma unit tests start working again. Not sure if that is an option for you but the new VS2017 build host doesn't seem to have this same issue - |
@BrianMikinski Thank you for this tip. Now Karma-phantomjs-launcher 1.0.4 works fine. I hope it stays that way. |
Hi!
Version 1.0.4 doesn't work with a global install of phantomjs.
Here is a short log of the npm install:
As is see you take phantomPackage._location (/phantomjs-prebuilt) instead of /phantomjs.
The provided CMD file points to the EXE file, but not necessary in your hardcoded folder.
It is unsafe to locate the EXE based from the CMD path.
The build-server (VSTS) was setup with your old path to the EXE, to workaround this problem.
Now all VSTS build with karma-phantomjs-launcher are broken.
I haven't a solution for this...rollback the to version 1.0.2 or start phantomjs via CMD.
:-(
Silvio
The text was updated successfully, but these errors were encountered: