GithubHelp home page GithubHelp logo

gskachkov / karma-phantomjs2-launcher Goto Github PK

View Code? Open in Web Editor NEW

This project forked from karma-runner/karma-phantomjs-launcher

15.0 1.0 10.0 62 KB

A Karma plugin. Launcher for PhantomJS2.

License: MIT License

JavaScript 100.00%

karma-phantomjs2-launcher's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

karma-phantomjs2-launcher's Issues

sudo npm install phantomjs2 -g

sudo npm install phantomjs2 -g
npm WARN deprecated [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm
npm WARN deprecated [email protected]: Use uuid module instead
/usr/local/bin/phantomjs -> /usr/local/lib/node_modules/phantomjs2/bin/phantomjs

[email protected] install /usr/local/lib/node_modules/phantomjs2
node install.js

Looks like an npm install -g; unable to check for already installed version.
invalid config loglevel="notice"
/usr/local/lib/node_modules/phantomjs2/phantomjs is not writable: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/phantomjs2/phantomjs'
Download already available at /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
Extracting tar contents (via spawned process)
Phantom installation failed { Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/phantomjs2/lib/phantom'
at Object.fs.mkdirSync (fs.js:891:18)
at sync (/usr/local/lib/node_modules/phantomjs2/node_modules/mkdirp/index.js:71:13)
at Function.sync (/usr/local/lib/node_modules/phantomjs2/node_modules/mkdirp/index.js:77:24)
at copyIntoPlace (/usr/local/lib/node_modules/phantomjs2/install.js:282:10)
at Promise._successFn (/usr/local/lib/node_modules/phantomjs2/install.js:72:12)
at Promise._call (/usr/local/lib/node_modules/phantomjs2/node_modules/kew/kew.js:373:13)
at Promise._withInput (/usr/local/lib/node_modules/phantomjs2/node_modules/kew/kew.js:333:25)
at Promise.resolve (/usr/local/lib/node_modules/phantomjs2/node_modules/kew/kew.js:105:27)
at /usr/local/lib/node_modules/phantomjs2/install.js:274:18
at ChildProcess.exithandler (child_process.js:262:7)
errno: -13,
code: 'EACCES',
syscall: 'mkdir',
path: '/usr/local/lib/node_modules/phantomjs2/lib/phantom' } Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/phantomjs2/lib/phantom'
at Object.fs.mkdirSync (fs.js:891:18)
at sync (/usr/local/lib/node_modules/phantomjs2/node_modules/mkdirp/index.js:71:13)
at Function.sync (/usr/local/lib/node_modules/phantomjs2/node_modules/mkdirp/index.js:77:24)
at copyIntoPlace (/usr/local/lib/node_modules/phantomjs2/install.js:282:10)
at Promise._successFn (/usr/local/lib/node_modules/phantomjs2/install.js:72:12)
at Promise._call (/usr/local/lib/node_modules/phantomjs2/node_modules/kew/kew.js:373:13)
at Promise._withInput (/usr/local/lib/node_modules/phantomjs2/node_modules/kew/kew.js:333:25)
at Promise.resolve (/usr/local/lib/node_modules/phantomjs2/node_modules/kew/kew.js:105:27)
at /usr/local/lib/node_modules/phantomjs2/install.js:274:18
at ChildProcess.exithandler (child_process.js:262:7)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2017-07-23T17_08_15_111Z-debug.log

Error installing PhantomJS2 during npm install

Seems that karma-phantomjs2-launcher is direction npm to download PhantomJS2 from an alternative mirror(https://bitbucket.org/ariya/phantomjs/downloads/...) instead of their default (https://github.com/Medium/phantomjs/releases/) and it is causing some errors(due to our firewall. Is it possible to modify this?

`> [email protected] install /var/lib/jenkins/jobs/QA-Complete-Test/workspace/dwa/node_modules/karma-phantomjs2-launcher/node_modules/phantomjs2-ext

node install.js

Downloading https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
Saving to /var/lib/jenkins/tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
Receiving...

Error making request.
Error: 140357198329920:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:769:

at SlabBuffer.use (tls.js:235:18)
at CleartextStream.read [as _read] (tls.js:455:29)
at CleartextStream.Readable.read (_stream_readable.js:341:10)
at EncryptedStream.write [as _write] (tls.js:369:25)
at doWrite (_stream_writable.js:226:10)
at writeOrBuffer (_stream_writable.js:216:5)
at EncryptedStream.Writable.write (_stream_writable.js:183:11)
at write (_stream_readable.js:602:24)
at flow (_stream_readable.js:611:7)
at Socket.pipeOnReadable (_stream_readable.js:643:5)

Please report this full log at https://github.com/Medium/phantomjs
npm ERR! weird error 1
npm ERR! not ok code 0`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.