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

Unable to install canvas 1.6.0 in node 10.15.0 #114

Open
sbala69gmail opened this issue Mar 27, 2019 · 6 comments
Open

Unable to install canvas 1.6.0 in node 10.15.0 #114

sbala69gmail opened this issue Mar 27, 2019 · 6 comments

Comments

@sbala69gmail
Copy link

I had tried to install audiogram in latest node 10.15.0 environment, Installation process stops while building canvas 1.6.0 module. Kindly fix audiogram to work in latest node js also.

@khanof89
Copy link

in your package.json you have canvas to be installed on particualr commit like this "canvas": "git+https://github.com/chearon/node-canvas.git#12971f64a66b", remove #12971f64a66b and delete node_modules and run npm install it should work

@ChaiBapchya
Copy link

Deleting the canvas version & rebuilding didn't help

node-pre-gyp ERR! Tried to download(404): https://github.com/node-gfx/node-canvas-prebuilt/releases/download/v2.0.0-alpha.13/canvas-prebuilt-v2.0.0-alpha.13-node-v72-darwin-unknown-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v72 ABI, unknown) (falling back to source compile with node-gyp)
  SOLINK_MODULE(target) Release/canvas-postbuild.node
  CXX(target) Release/obj.target/canvas/src/backend/Backend.o
  CXX(target) Release/obj.target/canvas/src/backend/ImageBackend.o
In file included from ../src/backend/ImageBackend.cc:1:
../src/backend/ImageBackend.h:27:32: error: no template named 'Handle' in namespace 'v8'
    static void Initialize(v8::Handle<v8::Object> target);
                           ~~~~^
../src/backend/ImageBackend.cc:71:20: error: variable has incomplete type 'void'
void ImageBackend::Initialize(Handle<Object> target)
                   ^
../src/backend/ImageBackend.cc:71:38: error: 'Object' does not refer to a value
void ImageBackend::Initialize(Handle<Object> target)
                                     ^
/Users/bapac/Library/Caches/node-gyp/12.16.1/include/node/v8.h:3496:17: note: declared here
class V8_EXPORT Object : public Value {
                ^
../src/backend/ImageBackend.cc:71:31: error: use of undeclared identifier 'Handle'
void ImageBackend::Initialize(Handle<Object> target)
                              ^
../src/backend/ImageBackend.cc:71:46: error: use of undeclared identifier 'target'
void ImageBackend::Initialize(Handle<Object> target)
                                             ^
../src/backend/ImageBackend.cc:71:53: error: expected ';' after top level declarator
void ImageBackend::Initialize(Handle<Object> target)
                                                    ^
                                                    ;
6 errors generated.
make: *** [Release/obj.target/canvas/src/backend/ImageBackend.o] Error 1

@ValeriiTT
Copy link

in your package.json you have canvas to be installed on particualr commit like this "canvas": "git+https://github.com/chearon/node-canvas.git#12971f64a66b", remove #12971f64a66b and delete node_modules and run npm install it should work

Worked for me, thanks

@ChaiBapchya
Copy link

@ValeriiTT what machine did you try this on? what versions?

@ValeriiTT
Copy link

@ChaiBapchya Ubuntu 19.10, npm v7.5.4, node v10.15.2, node-gyp v7.1.2

@vicperdana
Copy link

This one change allowed my install to work. Thanks!

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

5 participants