Skip to content

Cannot build on Node v12 #1

@SlytherinCz

Description

@SlytherinCz

Nodejs v12.13.0
npm 6.12.0
node-gyp 5.0.5

> @ronomon/[email protected] install /home/***/Projects/***/node_modules/@ronomon/base64
> node-gyp rebuild

make: Entering directory '/home/***/Projects/***/node_modules/@ronomon/base64/build'
  CXX(target) Release/obj.target/binding/binding.o
../binding.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE decode(Nan::NAN_METHOD_ARGS_TYPE)’:
../binding.cc:124:47: error: no matching function for call to ‘v8::Value::Uint32Value()’
   const uint32_t flags = info[2]->Uint32Value();
                                               ^
In file included from /home/***/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../../../nan/nan.h:54,
                 from ../binding.cc:1:
/home/***/.cache/node-gyp/12.13.0/include/node/v8.h:2611:41: note: candidate: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
                                         ^~~~~~~~~~~
/home/***/.cache/node-gyp/12.13.0/include/node/v8.h:2611:41: note:   candidate expects 1 argument, 0 provided
../binding.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE encode(Nan::NAN_METHOD_ARGS_TYPE)’:
../binding.cc:234:47: error: no matching function for call to ‘v8::Value::Uint32Value()’
   const uint32_t flags = info[2]->Uint32Value();
                                               ^
In file included from /home/***/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../../../nan/nan.h:54,
                 from ../binding.cc:1:
/home/***/.cache/node-gyp/12.13.0/include/node/v8.h:2611:41: note: candidate: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
                                         ^~~~~~~~~~~
/home/***/.cache/node-gyp/12.13.0/include/node/v8.h:2611:41: note:   candidate expects 1 argument, 0 provided
binding.target.mk:109: recipe for target 'Release/obj.target/binding/binding.o' failed
make: *** [Release/obj.target/binding/binding.o] Error 1
make: Leaving directory '/home/***/Projects/***/node_modules/@ronomon/base64/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:210:5)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Linux 5.0.0-32-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/***/Projects/***/node_modules/@ronomon/base64
gyp ERR! node -v v12.13.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ronomon/[email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @ronomon/[email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions