HuddleEng / PhantomFlow

Describe and visualise user flows through tests with PhantomJS
MIT License
682 stars 60 forks source link

Can't run PhantomFlow #36

Closed MatheMatrix closed 8 years ago

MatheMatrix commented 9 years ago

Hi,

I'm new to node.js, so maybe this is my fault but I can't find it :(

I do following things to install PhantomFlow:

brew install node git clone git clone https://github.com/Huddle/PhantomFlow.git npm install node test/test.js

Then it shows:

PhantomJS is not installed? Try `npm install`
Parallelising 2 test files on 2 threads.

It broke, sorry. Threads aborted. Non-zero code (1) returned.

 A thread has completed.

It broke, sorry. Threads aborted. Non-zero code (1) returned.

 All the threads have completed.

Completed 0 tests in 0 seconds. 0 failed, 0 passed.
/Users/weiwang/opensource/PhantomFlow/node_modules/wrench/lib/wrench.js:249
        if (e.code !== 'EEXIST') throw e;
                                       ^
Error: ENOENT, no such file or directory '/Users/weiwang/opensource/PhantomFlow/test-results/report'
    at Error (native)
    at Object.fs.mkdirSync (fs.js:751:18)
    at Object.exports.copyDirSyncRecursive (/Users/weiwang/opensource/PhantomFlow/node_modules/wrench/lib/wrench.js:246:12)
    at copyReportTemplate (/Users/weiwang/opensource/PhantomFlow/phantomflow.js:415:10)
    at ChildProcess.<anonymous> (/Users/weiwang/opensource/PhantomFlow/phantomflow.js:271:8)
    at ChildProcess.emit (events.js:110:17)
    at maybeClose (child_process.js:1008:16)
    at Socket.<anonymous> (child_process.js:1176:11)
    at Socket.emit (events.js:107:17)
    at Pipe.close (net.js:476:12)

Then I run npm install again:


> phantomjs@1.9.18 install /Users/weiwang/opensource/PhantomFlow/node_modules/phantomjs
> node install.js

Download already available at /var/folders/t7/qb22hwj15j7c9yph0xbt7s1c0000gn/T/phantomjs/phantomjs-1.9.8-macosx.zip
Extracting zip contents
Removing /Users/weiwang/opensource/PhantomFlow/node_modules/phantomjs/lib/phantom
Copying extracted folder /var/folders/t7/qb22hwj15j7c9yph0xbt7s1c0000gn/T/phantomjs/phantomjs-1.9.8-macosx.zip-extract-1439752203893/phantomjs-1.9.8-macosx -> /Users/weiwang/opensource/PhantomFlow/node_modules/phantomjs/lib/phantom
Writing location.js file
Done. Phantomjs binary available at /Users/weiwang/opensource/PhantomFlow/node_modules/phantomjs/lib/phantom/bin/phantomjs

But it still not work :( just output as I paste first

unional commented 9 years ago

I have the same problem too.

MatheMatrix commented 9 years ago

➜ ~ npm -v 2.5.1 ➜ ~ node -v v0.12.0

chris-dura commented 9 years ago

@MatheMatrix

So, I'm on Mac OSX Yosemite, and these versions seem to work...

$ npm -v
2.14.1
$ node -v
v0.12.7
$ phantomjs -v
1.9.7

Don't know if you're on Mac OSX, or if it will fix your problems, but people have experienced problems installing/updating NPM with Homebrew So, I've used the recommended install/update method for npm