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

Phantom JS not recognized command #11

Open
teej043 opened this issue Mar 7, 2016 · 6 comments
Open

Phantom JS not recognized command #11

teej043 opened this issue Mar 7, 2016 · 6 comments

Comments

@teej043
Copy link

teej043 commented Mar 7, 2016

OS: Windows 7 64bit
Node: 0.12.4
NPM: 2.10.1

Image of issue

@danielhusar
Copy link
Owner

Hey, do you have phantomjs installed ?

@teej043
Copy link
Author

teej043 commented Mar 8, 2016

I didn't installed it myself, but I had the expectation that npm will download and extract it automatically, I mean some packages that uses phantomjs does that.

[edit]
Sorry, I missed the part that I had to install phantomjs manually.

@teej043
Copy link
Author

teej043 commented Mar 8, 2016

PhantomJS installed, but now I get this error:

Teej@TEEJ-PC /c/wamp/www/frontend-jeldwen (master)
$ npm cache clear

Teej@TEEJ-PC /c/wamp/www/frontend-jeldwen (master)
$ gulp screens
[18:37:53] Using gulpfile C:\wamp\www\frontend-jeldwen\gulpfile.js
[18:37:53] Starting 'screens'...
[18:37:53] Finished 'screens' after 9.17 ms
phantom stdout: NETWORK_ERR: XMLHttpRequest Exception 101: A network error occur
red in synchronous requests.


phantom stdout:   phantomjs://code/shim.js:1815 in send
  phantomjs://code/shim.js:1815 in _start
  phantomjs://code/shim.js:1842



Teej@TEEJ-PC /c/wamp/www/frontend-jeldwen (master)
$ phantomjs --version
2.1.1

@timtwomey
Copy link

timtwomey commented Jun 18, 2016

Issue seems to be with Phantom 2.x. I uninstalled and installed: npm install -g phantomjs@1.9

It now runs my task ok, but still get warnings:

phantom stdout: SECURITY_ERR: DOM Exception 18: An attempt was made to break through the security policy of the user agent.

@ticapix
Copy link

ticapix commented Jan 2, 2017

same behavior here under debian with phantomjs-prebuilt@2.1.14 intalled.
with ans1 being the returned value of phantom.create in the index.js

[23:14:36] gulp-debug: build/index.html
file /mnt/c/Users/ticapix/workspace/runabove/build/index.html
url http://localhost:8000/index.html
ans1 Server {
options:
{ prefix: '',
response_limit: 131072,
websocket: true,
jsessionid: false,
heartbeat_delay: 25000,
disconnect_delay: 5000,
log: [Function: log],
sockjs_url: 'https://d1fxtkz8shb9d2.cloudfront.net/sockjs-0.3.min.js' },
_events: { connection: [Function: handler] },
_eventsCount: 1,
install: [Function] }
[23:14:36] gulp-debug: 1 item
phantom stdout: NETWORK_ERR: XMLHttpRequest Exception 101: A network error occurred in synchronous requests.

@ticapix
Copy link

ticapix commented Jan 2, 2017

switched to gulp-webshot

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

4 participants