gskachkov / karma-phantomjs2-launcher Goto Github PK
View Code? Open in Web Editor NEWThis project forked from karma-runner/karma-phantomjs-launcher
A Karma plugin. Launcher for PhantomJS2.
License: MIT License
This project forked from karma-runner/karma-phantomjs-launcher
A Karma plugin. Launcher for PhantomJS2.
License: MIT License
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
Would you accept a pull request to change the npm dependency from phantomjs2-ext
to phantomjs2
? The two packages seem to serve the same purpose, and phantomjs2
seems the more discoverable choice.
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`
Now that [email protected] includes phantomjs-prebuilt which includes [email protected], do we need a separate karma-phantomjs2-launcher npm package?
Would you accept a pull request to change the npm dependency from phantomjs2-ext
to phantomjs2
? The two packages seem to serve the same purpose, and phantomjs2
seems the more discoverable choice.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.