stefanjudis / grunt-photobox

Grunt plugin for creating screenshots of any site and compare them
MIT License
276 stars 22 forks source link

Not Able to install plug-in on MAC #41

Closed vikash-bhardwaj closed 8 years ago

vikash-bhardwaj commented 8 years ago

Hi @stefanjudis ,

When I try to install this plug-in on my machine it doesn't work and just to update you I am running on Node 5.6.0 while NPM version is 3.6.0. Is there something that I need to install first before installing this plug-in?

It starts breaking with below errors: CXX(target) Release/obj.target/bufferutil/src/bufferutil.o In file included from ../src/bufferutil.cc:16: ../../nan/nan.h:261:25: error: redefinition of '_NanEnsureLocal' NAN_INLINE v8::Local _NanEnsureLocal(v8::Local val) { ^ ../../nan/nan.h:256:25: note: previous definition is here NAN_INLINE v8::Local _NanEnsureLocal(v8::Handle val) { ..... .....

Any help will be appreciated.

Thanks Vikash Bhardwaj

stefanjudis commented 8 years ago

Works fine here.

stefan @ stefan-mac: ~/Downloads/test
> npm i grunt-photobox                                                                                            [13:10:51]
npm WARN deprecated npmconf@2.1.1: this package has been reintegrated into npm and is now out of date with respect to npm

> phantomjs@1.9.19 install /Users/stefan/Downloads/test/node_modules/phantomjs
> node install.js

PhantomJS not found on PATH
Download already available at /var/folders/03/cgg2bwfd6j92tfllylt5b91m0000gn/T/phantomjs/phantomjs-1.9.8-macosx.zip
Verified checksum of previously downloaded file
Extracting zip contents
Removing /Users/stefan/Downloads/test/node_modules/phantomjs/lib/phantom
Copying extracted folder /var/folders/03/cgg2bwfd6j92tfllylt5b91m0000gn/T/phantomjs/phantomjs-1.9.8-macosx.zip-extract-1455970272023/phantomjs-1.9.8-macosx -> /Users/stefan/Downloads/test/node_modules/phantomjs/lib/phantom
Writing location.js file
Done. Phantomjs binary available at /Users/stefan/Downloads/test/node_modules/phantomjs/lib/phantom/bin/phantomjs
/Users/stefan/Downloads/test
├── UNMET PEER DEPENDENCY grunt@~0.4.1
└─┬ grunt-photobox@0.8.2
  ├─┬ filenamify@1.2.0
  │ ├── filename-reserved-regex@1.0.0
  │ ├─┬ strip-outer@1.0.0
  │ │ └── escape-string-regexp@1.0.4
  │ └── trim-repeated@1.0.0
  └─┬ phantomjs@1.9.19
    ├── adm-zip@0.4.4
    ├─┬ fs-extra@0.23.1
    │ ├── graceful-fs@4.1.3
    │ ├── jsonfile@2.2.3
    │ ├── path-is-absolute@1.0.0
    │ └─┬ rimraf@2.5.2
    │   └─┬ glob@7.0.0
    │     ├── inflight@1.0.4
    │     └─┬ minimatch@3.0.0
    │       └─┬ brace-expansion@1.1.3
    │         ├── balanced-match@0.3.0
    │         └── concat-map@0.0.1
    ├── kew@0.4.0
    ├─┬ md5@2.0.0
    │ ├── charenc@0.0.1
    │ ├── crypt@0.0.1
    │ └── is-buffer@1.0.2
    ├─┬ npmconf@2.1.1
    │ ├─┬ config-chain@1.1.10
    │ │ └── proto-list@1.2.4
    │ ├── inherits@2.0.1
    │ ├── ini@1.3.4
    │ ├─┬ mkdirp@0.5.1
    │ │ └── minimist@0.0.8
    │ ├─┬ nopt@3.0.6
    │ │ └── abbrev@1.0.7
    │ ├─┬ once@1.3.3
    │ │ └── wrappy@1.0.1
    │ ├─┬ osenv@0.1.3
    │ │ ├── os-homedir@1.0.1
    │ │ └── os-tmpdir@1.0.1
    │ ├── semver@4.3.6
    │ └── uid-number@0.0.5
    ├── progress@1.1.8
    ├─┬ request@2.42.0
    │ ├── aws-sign2@0.5.0
    │ ├─┬ bl@0.9.5
    │ │ └─┬ readable-stream@1.0.33
    │ │   ├── core-util-is@1.0.2
    │ │   ├── isarray@0.0.1
    │ │   └── string_decoder@0.10.31
    │ ├── caseless@0.6.0
    │ ├── forever-agent@0.5.2
    │ ├─┬ form-data@0.1.4
    │ │ ├── async@0.9.2
    │ │ ├─┬ combined-stream@0.0.7
    │ │ │ └── delayed-stream@0.0.5
    │ │ └── mime@1.2.11
    │ ├─┬ hawk@1.1.1
    │ │ ├── boom@0.4.2
    │ │ ├── cryptiles@0.2.2
    │ │ ├── hoek@0.9.1
    │ │ └── sntp@0.2.4
    │ ├─┬ http-signature@0.10.1
    │ │ ├── asn1@0.1.11
    │ │ ├── assert-plus@0.1.5
    │ │ └── ctype@0.5.3
    │ ├── json-stringify-safe@5.0.1
    │ ├── mime-types@1.0.2
    │ ├── node-uuid@1.4.7
    │ ├── oauth-sign@0.4.0
    │ ├── qs@1.2.2
    │ ├── stringstream@0.0.5
    │ ├── tough-cookie@2.2.1
    │ └── tunnel-agent@0.4.2
    ├─┬ request-progress@0.3.1
    │ └── throttleit@0.0.2
    └── which@1.0.9

npm WARN enoent ENOENT: no such file or directory, open '/Users/stefan/Downloads/test/package.json'
npm WARN grunt-photobox@0.8.2 requires a peer of grunt@~0.4.1 but none was installed.
npm WARN test No description
npm WARN test No repository field.
npm WARN test No README data
npm WARN test No license field.

stefan @ stefan-mac: ~/Downloads/test
> node -v
v5.6.0

stefan @ stefan-mac: ~/Downloads/test
> npm -v
3.6.0
stefanjudis commented 8 years ago

Assuming you're not on MacOS?

vikash-bhardwaj commented 8 years ago

Thanks for the reply @stefanjudis and yes I am on MAC OS, is there something I have to mind while installing on MAC with latest Node and NPM versions?

stefanjudis commented 8 years ago

@vikash-bhardwaj no, not that I know of... :(

Do you have maybe some more logs? As I don't have it with exact your version I can't help so far.

vikash-bhardwaj commented 8 years ago

@stefanjudis, Updating with latest version solved the problem so you can please close the issue. Thanks for the Great Plug-in!!