Skip to content
This repository was archived by the owner on Jul 24, 2019. It is now read-only.

Commit 3132404

Browse files
committedMar 3, 2016
Merge pull request #485 from Medium/nick-logs
tweak some logs
2 parents 8404465 + 2ade873 commit 3132404

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎install.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -358,17 +358,18 @@ function tryPhantomjsOnPath() {
358358
return kew.nfcall(which, 'phantomjs')
359359
.then(function (result) {
360360
phantomPath = result
361+
console.log('Considering PhantomJS found at', phantomPath)
361362

362363
// Horrible hack to avoid problems during global install. We check to see if
363364
// the file `which` found is our own bin script.
364365
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.')
366367
return
367368
}
368369

369370
var contents = fs.readFileSync(phantomPath, 'utf8')
370371
if (/NPM_INSTALL_MARKER/.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.')
372373
} else {
373374
return checkPhantomjsVersion(phantomPath).then(function (matches) {
374375
if (matches) {

0 commit comments

Comments
 (0)
This repository has been archived.