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

Error on Windows10(x64) #53

Open
NinaNVY opened this issue Feb 3, 2016 · 66 comments
Open

Error on Windows10(x64) #53

NinaNVY opened this issue Feb 3, 2016 · 66 comments

Comments

@NinaNVY
Copy link

NinaNVY commented Feb 3, 2016

219
Hi,
I have PhantomJS installed globally. Phantomjs binary is available in the PATH and executable from the command line.
Here is my gulp task

gulp.task('tests', function () {
    return gulp.src('tests/spec/extraSpec.js')
        .pipe(jasmine({
            integration: true
        }));
});

I can not find logs and events.js:141 to see what's going wrong.
Running Jasmine with minijasminenode2 goes well when I delete the string integration: true from my gulp task
Please, help

@dflynn15
Copy link
Owner

dflynn15 commented Feb 3, 2016

Would you mind sharing your spec file?

@NinaNVY
Copy link
Author

NinaNVY commented Feb 4, 2016

Yes of course :)
I'm taking Udacity "Web Tooling & Automation", they gave this spec:

describe('window height', function() {
    it('returns window height', function() {
        expect(getWindowHeight()).toEqual(jasmine.any(Number));
    });
});

And the whole code is here: [https://github.com/udacity/ud892/tree/master/Lesson%204]

Thank you!

@dflynn15
Copy link
Owner

dflynn15 commented Feb 8, 2016

So, I was going through the code given and noticed that your gulp task seems to be missing the vendor: 'js/**/*.js' found here: https://github.com/udacity/ud892/blob/master/Lesson%204/gulpfile.js#L46

That may be the source of the problem. Let me know if that helps!

@NinaNVY
Copy link
Author

NinaNVY commented Feb 9, 2016

Thank you for your time dear Daniel!
My code already has this vendor: 'js/**/*.js' at line 46 :(
To detect Error I tried to run:
gulp > gulp_log.log 2> gulp_err.log
The result is here:
239
Maybe we could cut this problem into smaller pieces, something like this:
First, install and test jasmine alone (as node-module)
if it will work, then test jasmine with phantomjs to search for a problem with compatibility
if it will work, then search for a problem with gulp
Does it make sense?

@dflynn15
Copy link
Owner

dflynn15 commented Feb 9, 2016

I went ahead and cloned the courses repository down and everything works fine after npm install for all of the missing packages (they seriously need to give you guys a package.json file).

I think a good course of action to determine where the error might be coming from is to include this option in the task: keepRunner. This will allow you to have a spec runner html file after it breaks. After you run the task again gulp tests you should see a generated specRunner.html file that you can open and then determine if the error is in your tests.

@NinaNVY
Copy link
Author

NinaNVY commented Feb 10, 2016

Thank you!
I added keepRunner: true;
After I ran the task again, a new spec runner html file didn't appear. I just opened the old specRunner.html, given by Udacity, and it showed no error.
246
I want to npm install all of the missing packages, as you did. Would you tell me which commands to run?

@dflynn15
Copy link
Owner

@NinaNVY. I totally lead you astray. It's keepRunner: './' not keepRunner: true 😭

@NinaNVY
Copy link
Author

NinaNVY commented Feb 12, 2016

LOL :)
Thank you! Fixed keepRunner: './' :) and now it finally creates the new runner html file, which shows no errors :)
But after I ran gulp tests task, I waited 3 and a half of hours :) Here is the state of cmd all this time and the new error file
249

Gulp teststask created new runner, but after that it is simply hanging on and sleeping. So, after a few hours I pressed Ctrl+C :)
In case if it's possible that gulp-jasmine-phantom install got messed up I decided to try running:

npm uninstall gulp-jasmine-phantom
npm install -g jasmine-core
npm install -g phantomjs
npm install gulp-jasmine-phantom

Which didn't help

@dflynn15
Copy link
Owner

Well that's infuriating. That totally sucks, sorry that it hung for so long 😢 . Could you give me your system specs (OS, Node version, NPM version, and anything else you want to add)? I will try to set up a VM and see what I can do from there.

@NinaNVY
Copy link
Author

NinaNVY commented Feb 12, 2016

Yes, of course, thank you!
Intel(R) Core(TM) i7-4500U CPU @ 1.80GHz 2.40GHz
RAM 6GB
Windows10(x64)
Gulp version 3.9.0
phantomjs version 2.1.1
Node.js version 4.2.4
{ npm: '2.14.12',
ares: '1.10.1-DEV',
http_parser: '2.5.0',
icu: '56.1',
modules: '46',
node: '4.2.4',
openssl: '1.0.2e',
uv: '1.7.5',
v8: '4.5.103.35',
zlib: '1.2.8' }
And despite I installed npm install -g jasmine-core I got this instead of jasmine version:
263

And I checked all possible (just my guess) permission issues here. No permission issues.

But isn't it too much work to create new VM? Maybe it would be easier to use TeamViewer?

@NinaNVY
Copy link
Author

NinaNVY commented Feb 13, 2016

I tried run the following command:
phantomjs /path/to/run-jasmine.js http://localhost/js/test/unit/
, here is the output:
280

after that it is simply hanging on and sleeping.
I ran npm install path
Here is the result:
282
Then I installed:
285

And here is the output of running phantomjs with jasmine:

284

Is it about process or Child Process ?

I found this:

You can start a process from within phantom via require('child_process').spawn

@dflynn15
Copy link
Owner

That's super interesting. Have you ever been able to run phantomjs normally without running into that issue?

For example saving this as a tiny little JS file and running it:

console.log('Loading a web page');
var page = require('webpage').create();
var url = 'http://phantomjs.org/';
page.open(url, function (status) {
  //Page is loaded!
  phantom.exit();
});

@NinaNVY
Copy link
Author

NinaNVY commented Feb 16, 2016

It printed out all console.log, but didn't open any browser and the given page
281

@dflynn15
Copy link
Owner

Well, that's actually good. Concerning for me, but it means that your phantomjs works! I'll spin up that VM and start working on it. I know that there are some phantomjs issues with Windows, but that shouldn't be causing that issue.

@NinaNVY
Copy link
Author

NinaNVY commented Feb 18, 2016

Hi Daniel!
Thank you!
Yep, phantomjsworks alone, but it doesn't work with jasmine together.
Would you peek at what happened after I ran npm install path ?
Here is a brand new message from phantomjs :)
282

@dflynn15
Copy link
Owner

Ok! So. I went ahead and forked that Lesson repository so that we help narrow down specific issues pertaining to that code base.

You can go on over here and clone that repository. Head on over to the Lesson 4 directory and do an npm install. After that, run gulp tests and let's see if this helped or not!

@NinaNVY
Copy link
Author

NinaNVY commented Feb 18, 2016

Hi Daniel!
I cloned your fork with the new JSON package. Thank you! 😄 👍

and do an npm install

but I have all these node modules already installed, should I install again?

247

@dflynn15
Copy link
Owner

Yep! There may be version differences and many other things. If you feel ok with it, I would encourage you do run npm cache clean before npm install just to ensure that all of the packages are installed cleanly and are up to date.

@NinaNVY
Copy link
Author

NinaNVY commented Feb 18, 2016

I would encourage you do run npm cache clean before npm install

I don't know what will be cleared in npm cache, if not too much trouble could you tell me in short? I know you are busy I just need some time to google it (sorry I'm a newbie).
Should I run npm uninstall old node modules before install new version?

@dflynn15
Copy link
Owner

Here is the definition from the npm docs:

clean: Delete data out of the cache folder. If an argument is provided, then it specifies a subpath to delete. If no argument is provided, then the entire cache is cleared.

What that means is that when you run npm install a cached version of that module is stored on your computer so that npm doesn't need to make extra network requests when you make subsequent npm install on other projects that use the same modules.

npm cache clean will wipe that away so that you will definitively use the versions explicitly described in the package.json

@NinaNVY
Copy link
Author

NinaNVY commented Feb 18, 2016

Thank you for the explanation! 👍
First I uninstall all the old modules and second - clear the npm cache? Then install new.

@henrikrudstrom
Copy link
Contributor

I have the same problem on windows, that is , when i run the gulp task it hangs with the text "Running Jasmine with Phantom"

could it be realated to this?

Spawning .bat and .cmd files on Windows

The importance of the distinction between child_process.exec() and child_process.execFile() can vary based on platform. On Unix-type operating systems (Unix, Linux, OSX) child_process.execFile() can be more efficient because it does not spawn a shell. On Windows, however, .bat and .cmd files are not executable on their own without a terminal and therefore cannot be launched using child_process.execFile() (or even child_process.spawn()). When running on Windows, .bat and .cmd files can only be invoked using either child_process.exec() or by spawning cmd.exe and passing the .bat or .cmd file as an argument (which is what child_process.exec() does).

from the node docs

I tried replacing execFile with exec at at least in doesnt hang... will see if i get time to investigate further

@henrikrudstrom
Copy link
Contributor

actually, still same behaviour with ´exec´ as with ´execFile´

@NinaNVY
Copy link
Author

NinaNVY commented Feb 19, 2016

@henrikrudstrom please look at the end - when I tried to run phantomjs with jasmine, it asks for process variable
284

@NinaNVY
Copy link
Author

NinaNVY commented Feb 19, 2016

@dflynn15
Hi, Daniel!
I need more time to follow your advice, sorry, because I have trouble now even installing Gulp. Gulp Installation tells me again and again about graceful-fs 😢
I installed the last '4.1.3' version of graceful-fs , but Gulp Installation tells me again about graceful-fs !
300

Here is what the npm member ashleygwilliams answered:

"probably graceful-fs is a dependency of a dependency that you are using and the semver expression that dep is using does not allow version 4. you'll have to look at the package.json of the dep that requires it. this is also why u see the lodash warning and the second graceful-fs warning.
updating your other dependencies may help fix this as those lib maintainers likely (hopefully!) updated those deps."

Sorry, I'm a newbie and I need more time to understand what she wrote :(

How can I install gulp-jasmine-phantom: 3.0.0-rc1 ? I can only install version 2.1.2

@dflynn15
Copy link
Owner

@NinaNVY, so first things first. Let's talk about the error when installing gulp globally. The error there is simply saying that you do not have permission to install a global package. Usually that means the way you installed node and npm was through a sudo or the directories and libraries do not give you read/write access.

A quick way around that is to sudo npm install -g gulp but ideally you should figure out how to have read/write access to those folders. I'll link later once I find the SO answer I used a long time ago.

As for the warnings, that's just simply saying that there are dependencies that are "out of date." This is not necessarily a bad thing. Some modules depend on specific versions because the community as a whole doesn't follow semver very well. So on occasion you'll see modules explicitly depend on older versions. In this case there are dependecies that are looking for older versions of lodash and graceful-fs. This isn't a problem, and the warning is simply letting you know, but not erroring out 👍

@NinaNVY
Copy link
Author

NinaNVY commented Feb 19, 2016

@dflynn15

Oh, Daniel, thank you for your time and kind attention! :)

so first things first. Let's talk about the error when installing gulp globally

Did I install gulp globally if I ran npm install --save-dev gulp ?

Would you tell me please how can I install gulp-jasmine-phantom: 3.0.0-rc1? I can only install version 2.1.2

@dflynn15
Copy link
Owner

Did I install gulp globally if I ran npm install --save-dev gulp ?

So here's a quick rundown on the install flags and what each means. _This is taken from the npm install docs here.

npm install takes 3 exclusive, optional flags which save or update the package version in your main package.json:

  • -S, --save: Package will appear in your dependencies.
  • -D, --save-dev: Package will appear in your devDependencies.
  • -O, --save-optional: Package will appear in your optionalDependencies.

When using any of the above options to save dependencies to your package.json, there is an additional, optional flag:

  • -E, --save-exact: Saved dependencies will be configured with an exact version rather than using npm's default semver range operator.

The -g or --global argument will cause npm to install the package globally rather than locally. See npm-folders.

All in all, when you did --save-dev what it did was install a local copy of gulp which is totally fine. However, you won't be able to use gulp outside of the project.

As for the version 3.0.0-rc1 it will be installed if you run npm install from the directory containing the package.json (see here).

I think it would benefit you a lot to go through npms documentation and learn how it works. Specifically what a package.json file is, how it defines packages, and what npm tasks such as install or start do.

@NinaNVY
Copy link
Author

NinaNVY commented Feb 20, 2016

Dear Daniel!
Thank you for your explanation and for your time. Very very much appreciated. Thank you! 👍
I always read documentation carefully. In the case of Udacity "Web Tooling & Automation" course they gave us just a quick 3-steps overview :
1) please install Node, Gulp, Sass, Autoprefixer, Browsersync, ESlint, Phantom, Gulp-Jasmine-Phantom, Babel, Source map etc.
2) Watch the video and try yourself how it works, to give us a taste.
3) Spend more time to read documentation for each tool carefully.
On step 2 I tried every tool, except of gulp-jasmine-phantom. I saw how it works only in the instructor's video. And perhaps it make sence to move to step 3, and after completing step 3, go back to step 2 gulp-jasmine-phantom, because I'm wasting your time, sorry for the trouble.
It'll take me some time to read all the documentation, and after that go back to this issue.
Here is my intermediate result after reinstallation, it hangs on and sleeps :(
301

@alexkonkin
Copy link

Thank you so much for the instant response.

As you can see from the output this test is as simple as it could be
and was designed to check that the phantomjs.exe binary can be spawned by the software.
Currently I don't know the reason of this problem but can suppose that somethting
has been changed exactly with the windows builds of phantomjs.

@Nysosis
Copy link

Nysosis commented Mar 22, 2016

I've been having a similar issue, going through the current process I think I've identified an issue, haven't had the time to check further before finishing for the day, but thought Id leave it here as a potential starting point if I don't get a chance to follow up.

It looks like the handlebars is rendered with absolute paths to assets i.e. c:\projects\my-project\src\js\some-javascript.js which isnt a valid path for the html, I would have expected file://c:/projects...., with the file protocol and forward slashes.

Its possible phantomjs handles this, and its a red herring on my part, but putting logging into jasmine-runner.js it was failing to open the file with those paths in, removing the tags made it open fine

@dflynn15
Copy link
Owner

@Nysosis if you modify the jasmine-runner.js locally to accept the file:// does the task run then? I haven't looked too deeply into why Windows version would require the file:// however the unix based systems seem to handle absolute paths in src fine.

@Nysosis
Copy link

Nysosis commented Mar 22, 2016

I tried that, but it still gave the same Tests contained failures error
(I think because of backslashes instead of forward slashes). Where I got to
was taking that generated html, fixing it up, saving it elsewhere, and
passing it along in the specHTML config option. That stopped the Tests contained failures message from happening, however nothing else was
happening either (i.e. the task didn't finish), that might be due to no
tests running or something - I had to leave at the point before being able
to look any further into it

On 22 March 2016 at 16:56, Daniel Flynn [email protected] wrote:

@Nysosis https://github.com/Nysosis if you modify the jasmine-runner.js
locally to accept the file:// does the task run then? I haven't looked
too deeply into why Windows version would require the file:// however the
unix based systems seem to handle absolute paths in src fine.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#53 (comment)

@Nysosis
Copy link

Nysosis commented Mar 22, 2016

Right, been doing some more fiddling around at home, and managed to get it running and outputting to the console as expected.

What I've had to do to get it to work:

  1. jasmine-runner.js - line 32 - Change this to be: page.open("file:///" + system.args[1], function(status) {

  2. 'index.js - line 144` - Change this to be:

    var fixupPath = function(path) {
          if (path.match(/^http/)) {
            return path;
          }
    
          return "file:///" + path.replace(/\\/g, '/');
      }
    
      // Create the compile version of the specRunner from Handlebars
      var specData = handlebar.compile(data),
          specCompiled = specData({
            files: filePaths.map(fixupPath),
            jasmineCss: fixupPath(jasmineCss),
            jasmineJs: jasmineJs.map(fixupPath),
            vendorJs: vendorJs.map(fixupPath),
            specRunner: fixupPath(specRunner)
          });
    

This works for me on a w7 box, no idea how it would affect *nix machines running the plugin.

@NinaNVY
Copy link
Author

NinaNVY commented Mar 23, 2016

@dflynn15 @Nysosis I did your additions to the code. It prints out to to the SpecrRunner.html this information from extraSpec.js:

describe('window height', function() {
    it('returns window height', function() {
        expect(getWindowHeight()).toEqual(jasmine.any(Number));
    });
});

but doesn't log the same information to the cmd

351

@Nysosis
Copy link

Nysosis commented Mar 23, 2016

Can you run this command in the folder: npm list -depth=0, and put the output here, just so we can see what versions of packages you're using.

There's something else that I've noticed when working with that workshop repo (I presume that's the one you're using? I grabbed it from earlier messages in the issue), the runner doesn't like the space in the folder name 'Lesson 4'. If I try to run gulp tests from there, it falls over, renaming the folder to have no space makes it work fine, and outputs to the console as expected.

@NinaNVY
Copy link
Author

NinaNVY commented Mar 24, 2016

@Nysosis Thank you!
I renamed the folder, but same result :(
And from this Lesson4 folder I installed only gulp and gulp-jasmine-phantom, because all the other packages I have installed as a node modules. Sorry if it isn't right :)
352

@alexkonkin
Copy link

@NinaNVY
My suggestion would be to check a test repo that I created and which does not contain any additional settings except one test that could allow us to detect if something is wrong with this plugin and phantomjs.exe binary otherwise we will start to debug this course from udacity and not the actual problem.

I started from the same course and then created test git repository and shared it in my bug report:

https://github.com/alexkonkin/gulp-jasmine-phantom_bug.git

repository does not contain any packages that means that you should install
them before testing. Such approach would allow people to check the same thing
and not the particular problems with someone's environment.

@alexkonkin
Copy link

@NinaNVY
I think that you can fork my repository (gulp-jasmine-phantom_bug.git), install packages and check it in your environment with
the workaround that was suggested, then you can commit your changes that would allow other people
to checkout it and test in their environments.

p.s.: please consider the suggestions above only as ideas that would allow us
to boost the fixing process.

@NinaNVY
Copy link
Author

NinaNVY commented Mar 24, 2016

@alexkonkin Thank you!
I did it and here is the result:
353

@alexkonkin
Copy link

Any updates on this bug?
If the problem is that no one is able to fix this because does not have access to the Windows environment
I can create a virtual machine in my home PC and share with you Remote Desktop credentials.

Please let me know if this would be acceptable for you.
Thank you.

@dflynn15
Copy link
Owner

dflynn15 commented Apr 7, 2016

Right now I am slammed with my job so maintaining this has been put lower on my priority list right now. You can always submit a PR with a fix and I can help validate the *nix side of things. It's much easier for me if you submit a PR rather than waiting on me to write and test the fix you proposed here.

@dflynn15
Copy link
Owner

@Nysosis I have a branch up here. Would you mind testing that on your Windows env?

@ghost
Copy link

ghost commented May 11, 2016

I had the same issue when going through that course (on Windows 10, x64).
I can confirm that I was able to make it work applying the changes @Nysosis commented on Mar 22 (big thank you for that!).

I also gave a try for that branch you proposed @dflynn15.
When I changed content of my gulp-jasmine-phantom with downloaded zip of that branch it doesn't work straight away failing with

PS D:\project-fe> gulp tests
(node:264) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
[08:21:44] Using gulpfile D:\project-fe\gulpfile.js
[08:21:44] Starting 'tests'...
[08:21:44] Finished 'tests' after 7.93 ms
[08:21:44] Running Jasmine with PhantomJS
Couldn't load the page

events.js:160
      throw er; // Unhandled 'error' event
      ^
 Error: 1: Tests contained failures. Check logs for details.

When I look closer and compare your changes with backup I made from my patched version, I found out that jasmine-runner.js was missing a patch @Nysosis suggested, something like this:
page.open("file:///" + system.args[1], function(status) {

I am not sure if this will work on linux/osx but after this change that branch works for windows.

@gwynjudd
Copy link
Contributor

Hello,

I found one potential issue, I was getting the same error as the original:

image

On some debugging, I found that on this line it is trying to spawn phantomjs.cmd:

https://github.com/dflynn15/gulp-jasmine-phantom/blob/master/index.js#L22

I have installed phantomjs version 2.1.1, but it doesn't come with phantomjs.cmd. There is only a .exe. Either way, you could just run it as "phantomjs" without extension and it would work.

Changing that line got me passed the "ENOENT" problem, and onto another problem, but this should be fixed anyway.

@gwynjudd
Copy link
Contributor

Once I took the fix from @Nysosis (#53 (comment)), plus my fix for phantomjs.cmd, it was then working for me.

Windows 8
PhantomJS 2.1.1
NodeJS 4.4.4

@enderandpeter
Copy link

enderandpeter commented May 31, 2016

Please merge the commits from #66 that are shown in the comment because I too confirm that it is what allows all of this to work on Windows with that Udacity course.

I ended up installing phantomjs globally, and removed spaces from the path to the project because the jasmine / phantomjs scripts were having trouble with that, but I think after adding the code to properly deal with Windows file paths, it should work with such things normally.

phantomjs

@mnmercer
Copy link

Any idea when this fix will be put in a release? I see that it has been merged into the master branch, but no release has been made with these updates. In my opinion, this is a pretty major issue if the plugin doesn't work on Windows computers at all.

@dflynn15
Copy link
Owner

@MNR1 I realize the concern. It has been in testing to make sure it does not break other OS through the change. Because there are other features that are being merged in as well I have opted to wait. If you need the change simply use the Github url for your package.json and keep an eye on this issue. Once the fix has been updated and published as a versioned plugin I'll close the issue.

For now, I just ask you please be patient with me as I deal with other job and life related issues.

@mnmercer
Copy link

mnmercer commented Jun 16, 2016

@dflynn15 Thank you very much for your quick response. We are trying to use this plugin in the build of our first release of software so I was curious about the status. Attempting to use the GitHub URL right now.

UPDATE:
I tried using the the latest GitHub code, but when I run the plugin on my Windows 10 machine, it runs into an error when trying to execute phantomjs. I am using the phantomjs-prebuilt node module instead of a globally installed version of PhantomJS so I expected that the plugin will use that binary. However, when I did some debugging, I discovered that exec("where phantomjs") in hasGlobalPhantom() is not returning an error like it should. Instead, it is finding the phantomjs binary in the node_modules directory and assumes that PhantomJS is installed globally. Then when we run execPhantom(), it can't find the phantomjs command because it doesn't exist globally. I even tried changing the command to phantomjs -v and it returned the version of the prebuilt PhantomJS instead of failing. Not quite sure why exec() is behaving differently than when I run the commands in my command prompt. Any suggestions?

UPDATE AGAIN:
I think I figured out the issue. I was running the gulp plugin through my package.json file and apparently, Node looks for all binaries within the node_modules folder. However, this does mean that it was pulling the correct binary the whole time. So even when I run the plugin straight from my command line, I still have the same issue. execPhantom() is failing when it tries to execute.

UPDATE AGAIN AGAIN:
I apologize about all this. Was going through old closed issues and found this one #44. The fix proposed at the end of the discussion fixed my issue. However, that means that the phantomExecutable needs to be the .cmd one if it's being run on a Windows. Is there any work on making this happen?

@dflynn15
Copy link
Owner

@MNR1 I am going to revert the change that looks for the .cmd executable. Also, if you have updates can you just add a reply? That way I can get a notification. I don't get any notifications when you edit your post 😞

@mnmercer
Copy link

@dflynn15 Thank you. I look forward to the revision.
I apologize about that. This is the first time I've really made comments on anything in GitHub and I did not realize you wouldn't get notifications.

@avitevet
Copy link

Thanks @gwynjudd , your solution fixed the problem on my PC (Win10 x64)!

@klstromsland
Copy link

Hello,
I am not sure if what I am experiencing is related to this thread. I see that the fixes are in place in the latest version and that it is successful. Yet I am getting the error below. I too am going through the same coursework at Udacity. I would very much appreciate any insight on this. What are the possible causes?

Working from Samsung Laptop, AMD A6-3420M APU with Radeon(tm) HD Graphics 1.5GHz, 64bit, Windows 7.

Error messages:
C:\dev\mws\ud892\test_gulp>gulp tests
[17:01:19] Using gulpfile C:\dev\mws\ud892\test_gulp\gulpfile.js
[17:01:19] Starting 'tests'...
[17:01:19] Running Jasmine with PhantomJS
Couldn't load the page

[17:01:21] 'tests' errored after 2.7 s
[17:01:21] Error in plugin 'gulp-jasmine-phantomjs'
Message:
1: Tests contained failures. Check logs for details.
Details:
domainEmitter: [object Object]
domain: [object Object]
domainThrown: false

package.json
{
"name": "test_gulp",
"version": "1.0.0",
"description": "",
"main": "gulpfile.js",
"scripts": {
"test": "echo "Error: no test specified" && exit 1"
},
"author": "",
"license": "ISC",
"devDependencies": {
"browser-sync": "^2.24.4",
"gulp-autoprefixer": "^5.0.0",
"gulp-eslint": "^4.0.2",
"gulp-jasmine-phantom": "^3.0.0",
"gulp-sass": "^4.0.1",
"phantomjs": "^2.1.7"
},
"dependencies": {}
}

phantomjs 2.1.1 is installed in Program Files and is in PATH.

@klstromsland
Copy link

OK. The npm installer does not yet install the most update version for me. After making edits to local node_modules version, it does indeed work.

@sasokuncic
Copy link

Hi all,
As a participant of Udacity FEWD nanodegree I found the same problem with gulp-jasmine-phantom package on my Windows 10 laptop. Ricardo B. found the solution and publish it on the forum.

Use gulp-jasmine package instead of gulp-jasmine-phantom !!!

Additionally edit gulpfile.js ... var jasmine = require('gulp-jasmine')

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