This repository was archived by the owner on Jul 24, 2019. It is now read-only.
File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -358,17 +358,18 @@ function tryPhantomjsOnPath() {
358
358
return kew . nfcall ( which , 'phantomjs' )
359
359
. then ( function ( result ) {
360
360
phantomPath = result
361
+ console . log ( 'Considering PhantomJS found at' , phantomPath )
361
362
362
363
// Horrible hack to avoid problems during global install. We check to see if
363
364
// the file `which` found is our own bin script.
364
365
if ( phantomPath . indexOf ( path . join ( 'npm' , 'phantomjs' ) ) !== - 1 ) {
365
- console . log ( 'Looks like an `npm install -g` on windows; unable to check for already installed version.' )
366
+ console . log ( 'Looks like an `npm install -g` on windows; skipping installed version.' )
366
367
return
367
368
}
368
369
369
370
var contents = fs . readFileSync ( phantomPath , 'utf8' )
370
371
if ( / N P M _ I N S T A L L _ M A R K E R / . test ( contents ) ) {
371
- console . log ( 'Looks like an `npm install -g`; unable to check for already installed version.' )
372
+ console . log ( 'Looks like an `npm install -g`; skipping installed version.' )
372
373
} else {
373
374
return checkPhantomjsVersion ( phantomPath ) . then ( function ( matches ) {
374
375
if ( matches ) {
You can’t perform that action at this time.
0 commit comments