candu / node-int64-native

A simple uint64_t wrapper for node.js.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No template named 'Handle' error at install in React-Native project

razvanrujoiu opened this issue · comments

int64-native@0.5.0 install /Users/razvanrujoiu/Documents/ProiecteReact/videoManager/node_modules/int64-native
node-gyp configure && node-gyp build

CXX(target) Release/obj.target/Int64/src/main.o
In file included from ../src/main.cc:8:
../src/Int64.h:13:20: error: no template named 'Handle'
static void Init(Handle exports);
^
../src/main.cc:13:14: error: no template named 'Handle'
void InitAll(Handle exports) {
^
2 errors generated.
make: *** [Release/obj.target/Int64/src/main.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:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Darwin 20.1.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build"
gyp ERR! cwd /Users/razvanrujoiu/Documents/ProiecteReact/videoManager/node_modules/int64-native
gyp ERR! node -v v14.16.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm WARN jscodeshift@0.11.0 requires a peer of @babel/preset-env@^7.1.6 but none is installed. You must install peer dependencies yourself.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! int64-native@0.5.0 install: node-gyp configure && node-gyp build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the int64-native@0.5.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/razvanrujoiu/.npm/_logs/2021-09-08T08_25_50_584Z-debug.log