karma-phantomjs-launcher icon indicating copy to clipboard operation
karma-phantomjs-launcher copied to clipboard

Problem Installing karma-phantomjs-launcher

Open barakhaim opened this issue 10 years ago • 5 comments

Hi,

When I try - "npm install --save-dev karma-phantomjs-launcher" or point my package.json to the git repository I get errors:

npm ERR! Windows_NT 6.1.7601 npm ERR! argv "c:\Program Files\nodejs\node.exe" "c:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "i" npm ERR! node v0.12.4 npm ERR! npm v2.10.1 npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node install.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] install script 'node install.js' npm ERR! This is most likely a problem with the phantomjs package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node install.js npm ERR! You can get their info via: npm ERR! npm owner ls phantomjs npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! C:\Projects\MT.Player\npm-debug.log

barakhaim avatar Jan 26 '16 12:01 barakhaim

Maybe this is a compatibility issue with Node.

From the phantomjs npm site:

NOTE: phantomjs v2.x is currently under heavy development. Releases should be considered unstable.

There are other ways to install it that are listed on this site I linked to above, but maybe try updating Node to 4.x.x. That's what I use and it seems to be more stable than 0.x.x.

EDIT: Are you trying to upgrade phantomjs launcher from 1.x to 2.x?

Healforgreen avatar Jan 26 '16 14:01 Healforgreen

Updating Node isn't an option at the moment. npm install phantomjs2 works fine but I need the launcher for Karma testing.

barakhaim avatar Jan 26 '16 15:01 barakhaim

phantomjs2 is wrong package main phantomjs npm package is phantomjs-prebuilt https://www.npmjs.com/package/phantomjs-prebuilt see https://github.com/karma-runner/karma-phantomjs-launcher/pull/98

zowers avatar Jan 28 '16 08:01 zowers

Please try again with the newly released 1.0

dignifiedquire avatar Jan 28 '16 08:01 dignifiedquire

platform unsupported [email protected][email protected][email protected] › fsevents@^1.0.0 Package require os(darwin) not compatible with your platform(win32) [fsevents@^1.0.0] optional install error: Package require os(darwin) not compatible with your platform(win32)这是什么问题

ititchuan avatar Jan 23 '18 08:01 ititchuan