Open barakhaim opened 8 years ago
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?
Updating Node isn't an option at the moment. npm install phantomjs2 works fine but I need the launcher for Karma testing.
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
Please try again with the newly released 1.0
platform unsupported karma-phantomjs-launcher@1.0.4 › karma@1.7.1 › chokidar@1.7.0 › 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)这是什么问题
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! phantomjs@2.1.2 install:
node install.js
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the phantomjs@2.1.2 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