BridJS icon indicating copy to clipboard operation
BridJS copied to clipboard

can't install

Open konsumer opened this issue 3 years ago • 0 comments

I'm on M1 OSX 12.3.

node: v17.6.0 npm: 8.5.1 cmake-js: 6.3.0

When I try to npm i bridjs it fails with this:

npm WARN deprecated [email protected]: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410
npm ERR! code 1
npm ERR! path /Users/konsumer/Documents/otherdev/node-raylib-ffi/node_modules/bridjs
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! CXX(target) Release/obj.target/bridjs/src/array_struct_v8.o
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | darwin | arm64
npm ERR! gyp info find Python using Python version 3.9.10 found at "/opt/homebrew/opt/[email protected]/bin/python3.9"
npm ERR! gyp info spawn /opt/homebrew/opt/[email protected]/bin/python3.9
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/Users/konsumer/.nvm/versions/node/v17.6.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'make',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/konsumer/Documents/otherdev/node-raylib-ffi/node_modules/bridjs/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/konsumer/.nvm/versions/node/v17.6.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/konsumer/Library/Caches/node-gyp/17.6.0/include/node/common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=/Users/konsumer/Library/Caches/node-gyp/17.6.0',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/Users/konsumer/.nvm/versions/node/v17.6.0/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/Users/konsumer/Library/Caches/node-gyp/17.6.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/Users/konsumer/Documents/otherdev/node-raylib-ffi/node_modules/bridjs',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! In file included from ../src/array_struct_v8.cc:33:
npm ERR! In file included from ../src/array_struct_v8.h:35:
npm ERR! In file included from ../src/pointer_v8.h:35:
npm ERR! In file included from /Users/konsumer/Library/Caches/node-gyp/17.6.0/include/node/node.h:63:
npm ERR! In file included from /Users/konsumer/Library/Caches/node-gyp/17.6.0/include/node/v8.h:25:
npm ERR! In file included from /Users/konsumer/Library/Caches/node-gyp/17.6.0/include/node/v8-array-buffer.h:12:
npm ERR! In file included from /Users/konsumer/Library/Caches/node-gyp/17.6.0/include/node/v8-local-handle.h:12:
npm ERR! /Users/konsumer/Library/Caches/node-gyp/17.6.0/include/node/v8-internal.h:563:38: error: no template named 'remove_cv_t' in namespace 'std'; did you mean 'remove_cv'?
npm ERR!             !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
npm ERR!                                 ~~~~~^~~~~~~~~~~
npm ERR!                                      remove_cv
npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:715:50: note: 'remove_cv' declared here
npm ERR! template <class _Tp> struct _LIBCPP_TEMPLATE_VIS remove_cv
npm ERR!                                                  ^
npm ERR! In file included from ../src/array_struct_v8.cc:33:
npm ERR! In file included from ../src/array_struct_v8.h:35:
npm ERR! ../src/pointer_v8.h:42:23: error: no template named 'Handle' in namespace 'v8'
npm ERR!         static void Init(v8::Handle<v8::Object> exports);
npm ERR!                          ~~~~^
npm ERR! ../src/pointer_v8.h:48:52: error: no template named 'Handle' in namespace 'v8'
npm ERR!         static const void* Data(v8::Isolate* isolate, v8::Handle<v8::Object> val);
npm ERR!                                                       ~~~~^
npm ERR! In file included from ../src/array_struct_v8.cc:33:
npm ERR! In file included from ../src/array_struct_v8.h:36:
npm ERR! ../src/struct_v8.h:36:10: fatal error: 'v8-util.h' file not found
npm ERR! #include <v8-util.h>
npm ERR!          ^~~~~~~~~~~
npm ERR! 4 errors generated.
npm ERR! make: *** [Release/obj.target/bridjs/src/array_struct_v8.o] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack     at ChildProcess.onExit (/Users/konsumer/.nvm/versions/node/v17.6.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:527:28)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! System Darwin 21.4.0
npm ERR! gyp ERR! command "/Users/konsumer/.nvm/versions/node/v17.6.0/bin/node" "/Users/konsumer/.nvm/versions/node/v17.6.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /Users/konsumer/Documents/otherdev/node-raylib-ffi/node_modules/bridjs
npm ERR! gyp ERR! node -v v17.6.0
npm ERR! gyp ERR! node-gyp -v v8.4.1
npm ERR! gyp ERR! not ok

konsumer avatar Mar 16 '22 13:03 konsumer