Safe-node-app package does not install

I’ve tried following the https://hub.safedev.org/platform/nodejs/

I get stuck at adding the safe-node-app package.

This is what happens:

[folatt@MyComputer safe_app_electron_quick_start]$ npm install @maidsafe/safe-node-app --save
npm WARN deprecated natives@1.1.3: This module relies on Node.js's internals and will break at some point. Do not use it, and update to graceful-fs@4.x.

> ref@1.3.5 install /home/folatt/Cloud/workspace/MaidSafe-Mock/safe_examples/safe_app_electron_quick_start/node_modules/ref
> node-gyp rebuild

make: Entering directory '/home/folatt/Cloud/workspace/MaidSafe-Mock/safe_examples/safe_app_electron_quick_start/node_modules/ref/build'
  CXX(target) Release/obj.target/binding/src/binding.o
../src/binding.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::WriteInt64(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/binding.cc:360:30: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
     String::Utf8Value _str(in);
...
           ^~~~~~~~
../src/ffi.cc:126:11: error: ‘class v8::Object’ has no member named ‘ForceSet’
   target->ForceSet(Nan::New<String>("FFI_CIF_SIZE").ToLocalChecked(), Nan::New<Uint32>((uint32_t)sizeof(ffi_cif)), static_cast<PropertyAttribute>(ReadOnly | DontDelete));
           ^~~~~~~~
../src/ffi.cc:132:11: error: ‘class v8::Object’ has no member named ‘ForceSet’
   target->ForceSet(Nan::New<String>("HAS_OBJC").ToLocalChecked(), Nan::New<Boolean>(hasObjc), static_cast<PropertyAttribute>(ReadOnly | DontDelete));
           ^~~~~~~~
../src/ffi.cc: In static member function ‘static void FFI::FinishAsyncFFICall(uv_work_t*)’:
../src/ffi.cc:367:28: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   p->callback->Call(1, argv);
                            ^
In file included from ../src/ffi.h:23:0,
                 from ../src/ffi.cc:3:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
make: *** [ffi_bindings.target.mk:104: Release/obj.target/ffi_bindings/src/ffi.o] Error 1
make: Leaving directory '/home/folatt/Cloud/workspace/MaidSafe-Mock/safe_examples/safe_app_electron_quick_start/node_modules/ffi/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/node-gyp/lib/build.js:258:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:225:12)
gyp ERR! System Linux 4.16.6-1-ARCH
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/folatt/Cloud/workspace/MaidSafe-Mock/safe_examples/safe_app_electron_quick_start/node_modules/ffi
gyp ERR! node -v v10.0.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ffi@2.2.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the ffi@2.2.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/folatt/.npm/_logs/2018-05-20T14_15_01_986Z-debug.log

Hi @folaht, please make sure you have the versions specified in the pre-requisites section, I see you are using node v10.0.0, please try with node v8.11.1 .

3 Likes

This topic was automatically closed after 60 days. New replies are no longer allowed.