red-gold / react-social-network

Simple React Social Network
https://medium.com/@qolzam/create-social-network-by-react-js-fe60010a32e6
MIT License
489 stars 484 forks source link

having issus with npm install and yarn install #130

Closed RashoAli closed 4 years ago

RashoAli commented 4 years ago

im geting this error after starting the 'install' command i belive its on my side but dont know how to solve it

COPY Release/libgpr.a CXX(target) Release/obj.target/grpc_node/ext/byte_buffer.o CXX(target) Release/obj.target/grpc_node/ext/call.o ../ext/call.cc: In function ‘bool grpc::node::CreateMetadataArray(v8::Local, grpc_metadata_array*)’: ../ext/call.cc:99:58: error: no matching function for call to ‘v8::Array::Get(unsigned int&)’ Local current_key(Nan::To(keys->Get(i)).ToLocalChecked()); ^ In file included from /home/rasho/.cache/node-gyp/13.12.0/include/node/node.h:67:0, from ../ext/call.cc:23: /home/rasho/.cache/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate: v8::MaybeLocal v8::Object::Get(v8::Local, v8::Local) V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, ^~~ /home/rasho/.cache/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate expects 2 arguments, 1 provided /home/rasho/.cache/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate: v8::MaybeLocal v8::Object::Get(v8::Local, uint32_t) V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, ^~~ /home/rasho/.cache/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate expects 2 arguments, 1 provided ../ext/call.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE grpc::node::Call::StartBatch(Nan::NAN_METHOD_ARGS_TYPE)’: ../ext/call.cc:663:35: error: no matching function for call to ‘v8::Object::Get(uint32_t&)’ if (!op->ParseOp(obj->Get(type), &ops[i])) { ^ In file included from /home/rasho/.cache/node-gyp/13.12.0/include/node/node.h:67:0, from ../ext/call.cc:23: /home/rasho/.cache/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate: v8::MaybeLocal v8::Object::Get(v8::Local, v8::Local) V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, ^~~ /home/rasho/.cache/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate expects 2 arguments, 1 provided /home/rasho/.cache/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate: v8::MaybeLocal v8::Object::Get(v8::Local, uint32_t) V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, ^~~ /home/rasho/.cache/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate expects 2 arguments, 1 provided At global scope: cc1plus: error: unrecognized command line option ‘-Wno-cast-function-type’ [-Werror] cc1plus: all warnings being treated as errors grpc_node.target.mk:190: recipe for target 'Release/obj.target/grpc_node/ext/call.o' failed make: *** [Release/obj.target/grpc_node/ext/call.o] Error 1 make: Leaving directory '/home/rasho/Desktop/MyWave/green/react-social-network/node_modules/grpc/build' gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/home/rasho/.nvm/versions/node/v13.12.0/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:275:12) gyp ERR! System Linux 5.3.0-53-generic gyp ERR! command "/home/rasho/.nvm/versions/node/v13.12.0/bin/node" "/home/rasho/.nvm/versions/node/v13.12.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=/home/rasho/Desktop/MyWave/green/react-social-network/node_modules/grpc/src/node/extension_binary/node-v79-linux-x64-glibc/grpc_node.node" "--module_name=grpc_node" "--module_path=/home/rasho/Desktop/MyWave/green/react-social-network/node_modules/grpc/src/node/extension_binary/node-v79-linux-x64-glibc" "--napi_version=6" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v79" gyp ERR! cwd /home/rasho/Desktop/MyWave/green/react-social-network/node_modules/grpc gyp ERR! node -v v13.12.0 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/home/rasho/.nvm/versions/node/v13.12.0/bin/node /home/rasho/.nvm/versions/node/v13.12.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/home/rasho/Desktop/MyWave/green/react-social-network/node_modules/grpc/src/node/extension_binary/node-v79-linux-x64-glibc/grpc_node.node --module_name=grpc_node --module_path=/home/rasho/Desktop/MyWave/green/react-social-network/node_modules/grpc/src/node/extension_binary/node-v79-linux-x64-glibc --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v79' (1) node-pre-gyp ERR! stack at ChildProcess. (/home/rasho/Desktop/MyWave/green/react-social-network/node_modules/grpc/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:315:20) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1026:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5) node-pre-gyp ERR! System Linux 5.3.0-53-generic node-pre-gyp ERR! command "/home/rasho/.nvm/versions/node/v13.12.0/bin/node" "/home/rasho/Desktop/MyWave/green/react-social-network/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library" node-pre-gyp ERR! cwd /home/rasho/Desktop/MyWave/green/react-social-network/node_modules/grpc node-pre-gyp ERR! node -v v13.12.0 node-pre-gyp ERR! node-pre-gyp -v v0.12.0 node-pre-gyp ERR! not ok Failed to execute '/home/rasho/.nvm/versions/node/v13.12.0/bin/node /home/rasho/.nvm/versions/node/v13.12.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/home/rasho/Desktop/MyWave/green/react-social-network/node_modules/grpc/src/node/extension_binary/node-v79-linux-x64-glibc/grpc_node.node --module_name=grpc_node --module_path=/home/rasho/Desktop/MyWave/green/react-social-network/node_modules/grpc/src/node/extension_binary/node-v79-linux-x64-glibc --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v79' (1) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! grpc@1.20.0 install: node-pre-gyp install --fallback-to-build --library=static_library npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the grpc@1.20.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! /home/rasho/.npm/_logs/2020-05-22T16_26_15_005Z-debug.log

rickithadi commented 4 years ago

any news?

RashoAli commented 4 years ago

no 🤷‍♀️

Qolzam commented 4 years ago

Close with #131.