IBM-Blockchain-Archive / fabric-boilerplate

Get up and running quickly with your own blockchain application!
Apache License 2.0
79 stars 150 forks source link

npm install fails: make eror #20

Closed KennethNagin closed 7 years ago

KennethNagin commented 7 years ago

Since, we were making no progress on issue #17, I decided to start from scratch on another host. But now even npm install fails. After downloading lots of stuff the make fails. Here are the details: CXX(target) Release/obj.target/grpc_node/src/node/ext/byte_buffer.o ../src/node/ext/byte_buffer.cc: In function \u2018v8::Local grpc::node::MakeFastBuffer(v8::Local)\u2019: ../src/node/ext/byte_buffer.cc:99:72: warning: \u2018v8::Local v8::Function::NewInstance(int, v8::Local) const\u2019 is deprecated (declared at /home/nagin/.node-gyp/7.2.1/include/node/v8.h:3287): Use maybe version [-Wdeprecated-declarations] Local fastBuffer = bufferConstructor->NewInstance(3, consArgs); ^ CXX(target) Release/obj.target/grpc_node/src/node/ext/call.o ../src/node/ext/call.cc: In static member function \u2018static Nan::NAN_METHOD_RETURN_TYPE grpc::node::Call::New(Nan::NAN_METHOD_ARGSTYPE)\u2019: ../src/node/ext/call.cc:616:20: error: \u2018class v8::Object\u2019 has no member named \u2018SetHiddenValue\u2019 info.This()->SetHiddenValue(Nan::New("channel").ToLocalChecked(), ^ ../src/node/ext/call.cc:625:19: warning: \u2018v8::Local v8::Function::NewInstance(int, v8::Local) const\u2019 is deprecated (declared at /home/nagin/.node-gyp/7.2.1/include/node/v8.h:3287): Use maybe version [-Wdeprecated-declarations] argc, argv); ^ make: *** [Release/obj.target/grpc_node/src/node/ext/call.o] Error 1 make: Leaving directory `/home/nagin/work/src/github.com/fabric-boilerplate/node_modules/grpc/build'

make: *** [Release/obj.target/grpc_node/src/node/ext/call.o] Error 1 make: Leaving directory /home/nagin/work/src/github.com/fabric-boilerplate/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/nagin/work/src/github.com/fabric-boilerplate/node_modules/node-gyp/lib/build.js:276:23) gyp ERR! stack at emitTwo (events.js:106:13) gyp ERR! stack at ChildProcess.emit (events.js:191:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12) gyp ERR! System Linux 3.19.0-25-generic gyp ERR! command "/usr/local/bin/node" "/home/nagin/work/src/github.com/fabric-boilerplate/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/nagin/work/src/github.com/fabric-boilerplate/node_modules/grpc/src/node/extension_binary/grpc_node.node" "--module_name=grpc_node" "--module_path=/home/nagin/work/src/github.com/fabric-boilerplate/node_modules/grpc/src/node/extension_binary" gyp ERR! cwd /home/nagin/work/src/github.com/fabric-boilerplate/node_modules/grpc gyp ERR! node -v v7.2.1 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok

lots of errors after this.

I did the nodejs v7 install based on https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions for Ubuntu $ npm -v 3.10.10 $ nodejs -v v7.3.0