Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with npm install -g automated-screenshot-diff #10

Open
imtiazhossain opened this issue Dec 28, 2015 · 3 comments
Open

Issue with npm install -g automated-screenshot-diff #10

imtiazhossain opened this issue Dec 28, 2015 · 3 comments

Comments

@imtiazhossain
Copy link

I searched for solution everywhere.

When I run npm install -g automated-screenshot-diff, I get the following error:

/usr/local/bin/automated-screenshot-diff -> /usr/local/lib/node_modules/automated-screenshot-diff/bin/automated-screenshot-diff

canvas@1.0.3 install /usr/local/lib/node_modules/automated-screenshot-diff/node_modules/canvas
node-gyp rebuild

CXX(target) Release/obj.target/canvas/src/Canvas.o
In file included from ../src/Canvas.cc:7:
../src/Canvas.h:54:36: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
static Handle New(const Arguments &args);
^~~~~~~~~
v8::internal::Arguments
/Users/imtiazhossain/.node-gyp/5.3.0/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here
class Arguments;
^
In file included from ../src/Canvas.cc:7:
../src/Canvas.h:55:41: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
static Handle ToBuffer(const Arguments &args);
^~~~~~~~~
v8::internal::Arguments
/Users/imtiazhossain/.node-gyp/5.3.0/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here
class Arguments;
^
In file included from ../src/Canvas.cc:7:
../src/Canvas.h:56:60: error: unknown type name 'AccessorInfo'
static Handle GetType(Local prop, const AccessorInfo &info);
^
../src/Canvas.h:57:61: error: unknown type name 'AccessorInfo'
static Handle GetWidth(Local prop, const AccessorInfo &info);
^
../src/Canvas.h:58:62: error: unknown type name 'AccessorInfo'
static Handle GetHeight(Local prop, const AccessorInfo &info);
^
../src/Canvas.h:59:70: error: unknown type name 'AccessorInfo'
static void SetWidth(Local prop, Local val, const AccessorInfo &info);
^
../src/Canvas.h:60:71: error: unknown type name 'AccessorInfo'
static void SetHeight(Local prop, Local val, const AccessorInfo &info);
^
../src/Canvas.h:61:46: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
static Handle StreamPNGSync(const Arguments &args);
^~~~~~~~~
v8::internal::Arguments
/Users/imtiazhossain/.node-gyp/5.3.0/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here
class Arguments;
^
In file included from ../src/Canvas.cc:7:
../src/Canvas.h:62:47: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
static Handle StreamJPEGSync(const Arguments &args);
^~~~~~~~~
v8::internal::Arguments
/Users/imtiazhossain/.node-gyp/5.3.0/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here
class Arguments;
^
In file included from ../src/Canvas.cc:7:
../src/Canvas.h:65:31: error: unknown type name 'uv_work_t'
static void ToBufferAsync(uv_work_t req);
^
../src/Canvas.h:66:36: error: unknown type name 'uv_work_t'
static void ToBufferAsyncAfter(uv_work_t *req);
^
In file included from ../src/Canvas.cc:8:
In file included from ../src/CanvasRenderingContext2d.h:13:
../src/CanvasGradient.h:17:36: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
static Handle New(const Arguments &args);
^~~~~~~~~
v8::internal::Arguments
/Users/imtiazhossain/.node-gyp/5.3.0/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here
class Arguments;
^
In file included from ../src/Canvas.cc:8:
In file included from ../src/CanvasRenderingContext2d.h:13:
../src/CanvasGradient.h:18:45: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
static Handle AddColorStop(const Arguments &args);
^~~~~~~~~
v8::internal::Arguments
/Users/imtiazhossain/.node-gyp/5.3.0/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here
class Arguments;
^
In file included from ../src/Canvas.cc:8:
../src/CanvasRenderingContext2d.h:74:36: error: unknown type name 'Arguments'; did you mean
'v8::internal::Arguments'?
static Handle New(const Arguments &args);
^~~~~~~~~
v8::internal::Arguments
/Users/imtiazhossain/.node-gyp/5.3.0/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here
class Arguments;
^
In file included from ../src/Canvas.cc:8:
../src/CanvasRenderingContext2d.h:75:42: error: unknown type name 'Arguments'; did you mean
'v8::internal::Arguments'?
static Handle DrawImage(const Arguments &args);
^~~~~~~~~
v8::internal::Arguments
/Users/imtiazhossain/.node-gyp/5.3.0/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here
class Arguments;
^
In file included from ../src/Canvas.cc:8:
../src/CanvasRenderingContext2d.h:76:45: error: unknown type name 'Arguments'; did you mean
'v8::internal::Arguments'?
static Handle PutImageData(const Arguments &args);
^~~~~~~~~
v8::internal::Arguments
/Users/imtiazhossain/.node-gyp/5.3.0/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here
class Arguments;
^
In file included from ../src/Canvas.cc:8:
../src/CanvasRenderingContext2d.h:77:37: error: unknown type name 'Arguments'; did you mean
'v8::internal::Arguments'?
static Handle Save(const Arguments &args);
^~~~~~~~~
v8::internal::Arguments
/Users/imtiazhossain/.node-gyp/5.3.0/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here
class Arguments;
^
In file included from ../src/Canvas.cc:8:
../src/CanvasRenderingContext2d.h:78:40: error: unknown type name 'Arguments'; did you mean
'v8::internal::Arguments'?
static Handle Restore(const Arguments &args);
^~~~~~~~~
v8::internal::Arguments
/Users/imtiazhossain/.node-gyp/5.3.0/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here
class Arguments;
^
In file included from ../src/Canvas.cc:8:
../src/CanvasRenderingContext2d.h:79:39: error: unknown type name 'Arguments'; did you mean
'v8::internal::Arguments'?
static Handle Rotate(const Arguments &args);
^~~~~~~~~
v8::internal::Arguments
/Users/imtiazhossain/.node-gyp/5.3.0/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here
class Arguments;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *
* [Release/obj.target/canvas/src/Canvas.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 15.2.0
gyp ERR! command "/usr/local/Cellar/node/5.3.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/automated-screenshot-diff/node_modules/canvas
gyp ERR! node -v v5.3.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN install:canvas@1.0.3 canvas@1.0.3 install: node-gyp rebuild
npm WARN install:canvas@1.0.3 Exit status 1
/usr/local/lib
└── (empty)

npm ERR! code 1

@LittleAprilFool
Copy link

I also have the same problem

@igorescobar
Copy link
Owner

@imtiazhossain @aprilwong have you installed the dependencies BEFORE installing the npm?

@sakonachhoeurng
Copy link

Hi @igorescobar,

I also have this problem. I run sudo npm install -g automated-screenshot-diff on my os ubuntu 16.04
node v6.10.1
npm v3.10.10

Thanks for helping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants