-
Notifications
You must be signed in to change notification settings - Fork 42
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
make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Error 1 #22
Comments
You are installing out of date dependencies. Only 1.2.x works on node 4. The 1.1.x that you are installing only works on 0.12 and lower
|
Got it. Thanks for your help! |
I am having the same issue, although it is said in the comment that old dependencies is being used, still what exactly needs to be done to resolve this isse?Thank You |
Same, I'm getting this error and I've tried installing bufferutil locally and making sure the package-lock files are uptodate, but I get this error on deployment to heroku. Since this post was made 5 years ago, I have no idea what could be outdated.
|
npm WARN deprecated request@2.88.2: request has been deprecated, see request/request#3142
Downloading binary from https://github.com/sass/node-sass/releases/download/v3.13.1/linux-x64-83_binding.node HTTP error 404 Not Found Hint: If github.com is not accessible in your location
or configure npm proxy via
make: Entering directory '/home/vishald/stackviz/node_modules/protractor/node_modules/bufferutil/build' ::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo ::Callback = void ()(const v8::WeakCallbackInfonode::ObjectWrap&)]’: ::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo ::Callback = void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)]’:
Building: /usr/bin/node /home/vishald/stackviz/node_modules/gulp-sass/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library= npm ERR! code ELIFECYCLE npm ERR! A complete log of this run can be found in: |
Anyone Can you help me to resolve this error ? |
Could you help? I'm getting the following error while trying to build bufferutil through npm:
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
In file included from ../src/bufferutil.cc:16:0:
../../nan/nan.h:261:25: error: redefinition of 'template v8::Local NanEnsureLocal(v8::Local)'
NAN_INLINE v8::Local NanEnsureLocal(v8::Local val) {
^
../../nan/nan.h:256:25: note: 'template v8::Local NanEnsureLocal(v8::Handle)' previously declared here
NAN_INLINE v8::Local NanEnsureLocal(v8::Handle val) {
^
../../nan/nan.h:661:13: error: 'node::smalloc' has not been declared
, node::smalloc::FreeCallback callback
^
../../nan/nan.h:661:35: error: expected ',' or '...' before 'callback'
, node::smalloc::FreeCallback callback
^
../../nan/nan.h: In function 'v8::Localv8::Object NanNewBufferHandle(char, size_t, int)':
../../nan/nan.h:665:50: error: 'callback' was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^
../../nan/nan.h:665:60: error: 'hint' was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^
../../nan/nan.h: In function 'v8::Localv8::Object NanNewBufferHandle(const char, uint32_t)':
../../nan/nan.h:672:67: error: no matching function for call to 'New(v8::Isolate, const char&, uint32_t&)'
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
^
In file included from ../src/bufferutil.cc:10:0:
/Users/yourname/.node-gyp/4.1.2/include/node/node_buffer.h:31:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate_, v8::Localv8::String, node::encoding)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate_ isolate,
^
/Users/yourname/.node-gyp/4.1.2/include/node/node_buffer.h:31:40: note: conversion of argument 3 would be ill-formed:
In file included from ../src/bufferutil.cc:16:0:
../../nan/nan.h:672:67: error: invalid conversion from 'uint32_t {aka unsigned int}' to 'node::encoding' [-fpermissive]
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
^
In file included from ../src/bufferutil.cc:10:0:
/Users/yourname/.node-gyp/4.1.2/include/node/node_buffer.h:43:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate_, char_, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/Users/yourname/.node-gyp/4.1.2/include/node/node_buffer.h:43:40: note: conversion of argument 2 would be ill-formed:
In file included from ../src/bufferutil.cc:16:0:
../../nan/nan.h:672:67: error: invalid conversion from 'const char_' to 'char_' [-fpermissive]
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
^
../../nan/nan.h: In function 'v8::Localv8::Object NanNewBufferHandle(uint32_t)':
../../nan/nan.h:676:29: error: could not convert 'node::Buffer::New(v8::Isolate::GetCurrent(), ((size_t)size))' from 'v8::MaybeLocalv8::Object' to 'v8::Localv8::Object'
return node::Buffer::New(v8::Isolate::GetCurrent(), size);
^
../../nan/nan.h: In function 'v8::Localv8::Object NanBufferUse(char_, uint32_t)':
../../nan/nan.h:683:12: error: 'Use' is not a member of 'node::Buffer'
return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
^
make: *_* [Release/obj.target/bufferutil/src/bufferutil.o] Error 1
gyp ERR! build error
gyp ERR! stack Error:
make
failed with exit code: 2gyp 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 14.5.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/yourname/IdeaProjects/myproject/node_modules/selenium-webdriver/node_modules/bufferutil
gyp ERR! node -v v4.1.2
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v4.1.2
npm ERR! npm v3.3.5
npm ERR! code ELIFECYCLE
npm ERR! bufferutil@1.1.0 install:
node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bufferutil@1.1.0 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the bufferutil package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls bufferutil
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/yourname/IdeaProjects/myproject/npm-debug.log
The text was updated successfully, but these errors were encountered: