start STF failed
-
all the requirements is installed ok, then install STF with "cnpm install stf -g"
-
rethinkdb start ok:
[root@Appium appium]# rethinkdb Running rethinkdb 2.2.4 (GCC 4.8.2)... Running on Linux 2.6.32-573.18.1.el6.x86_64 x86_64 Loading data from directory /home/appium/rethinkdb_data Listening for intracluster connections on port 29015 Listening for client driver connections on port 28015 Listening for administrative HTTP connections on port 8080 Listening on addresses: 127.0.0.1, ::1 To fully expose RethinkDB on the network, bind to all addresses by running rethinkdb with the
--bind allcommand line option. Server ready, "Appium_yex" 8062ab22-341c-4aab-ba13-3a477045b405 A newer version of the RethinkDB server is available: 2.2.5. You can read the changelog at https://github.com/rethinkdb/rethinkdb/releases.
3)start stf failed:
[root@Appium zmq-1.0.0]# stf local INF/util:procutil 13900 [] Forking "/home/appium/appium-soft/node-v4.4.0-linux-x64/lib/node_modules/.stf_npminstall/stf/1.1.1/stf/lib/cli.js migrate" INF/db 13905 [] Connecting to 127.0.0.1:28015 INF/db:setup 13905 [] Database "stf" already exists INF/db:setup 13905 [] Table "users" already exists INF/db:setup 13905 [] Table "accessTokens" already exists INF/db:setup 13905 [] Table "vncauth" already exists INF/db:setup 13905 [] Table "devices" already exists INF/db:setup 13905 [] Table "logs" already exists INF/db:setup 13905 [] Index "users"."adbKeys" already exists INF/db:setup 13905 [] Index "accessTokens"."email" already exists INF/db:setup 13905 [] Index "vncauth"."response" already exists INF/db:setup 13905 [] Index "vncauth"."responsePerDevice" already exists INF/db:setup 13905 [] Index "devices"."owner" already exists INF/db:setup 13905 [] Index "devices"."present" already exists INF/db:setup 13905 [] Index "devices"."providerChannel" already exists INF/db:setup 13905 [] Waiting for index "users"."adbKeys" INF/db:setup 13905 [] Waiting for index "accessTokens"."email" INF/db:setup 13905 [] Waiting for index "vncauth"."response" INF/db:setup 13905 [] Waiting for index "vncauth"."responsePerDevice" INF/db:setup 13905 [] Waiting for index "devices"."owner" INF/db:setup 13905 [] Waiting for index "devices"."present" INF/db:setup 13905 [] Waiting for index "devices"."providerChannel" INF/db:setup 13905 [] Index "users"."adbKeys" is ready INF/db:setup 13905 [] Index "accessTokens"."email" is ready INF/db:setup 13905 [] Index "vncauth"."response" is ready INF/db:setup 13905 [] Index "vncauth"."responsePerDevice" is ready INF/db:setup 13905 [] Index "devices"."owner" is ready INF/db:setup 13905 [] Index "devices"."present" is ready INF/db:setup 13905 [] Index "devices"."providerChannel" is ready INF/util:procutil 13900 [] Forking "/home/appium/appium-soft/node-v4.4.0-linux-x64/lib/node_modules/.stf_npminstall/stf/1.1.1/stf/lib/cli.js triproxy app001 --bind-pub tcp://127.0.0.1:7111 --bind-dealer tcp://127.0.0.1:7112 --bind-pull tcp://127.0.0.1:7113" INF/util:procutil 13900 [] Forking "/home/appium/appium-soft/node-v4.4.0-linux-x64/lib/node_modules/.stf_npminstall/stf/1.1.1/stf/lib/cli.js triproxy dev001 --bind-pub tcp://127.0.0.1:7114 --bind-dealer tcp://127.0.0.1:7115 --bind-pull tcp://127.0.0.1:7116" INF/util:procutil 13900 [] Forking "/home/appium/appium-soft/node-v4.4.0-linux-x64/lib/node_modules/.stf_npminstall/stf/1.1.1/stf/lib/cli.js processor proc001 --connect-app-dealer tcp://127.0.0.1:7112 --connect-dev-dealer tcp://127.0.0.1:7115" INF/util:procutil 13900 [] Forking "/home/appium/appium-soft/node-v4.4.0-linux-x64/lib/node_modules/.stf_npminstall/stf/1.1.1/stf/lib/cli.js processor proc002 --connect-app-dealer tcp://127.0.0.1:7112 --connect-dev-dealer tcp://127.0.0.1:7115" INF/util:procutil 13900 [] Forking "/home/appium/appium-soft/node-v4.4.0-linux-x64/lib/node_modules/.stf_npminstall/stf/1.1.1/stf/lib/cli.js reaper reaper001 --connect-push tcp://127.0.0.1:7116 --connect-sub tcp://127.0.0.1:7111" INF/util:procutil 13900 [] Forking "/home/appium/appium-soft/node-v4.4.0-linux-x64/lib/node_modules/.stf_npminstall/stf/1.1.1/stf/lib/cli.js provider --name Appium --min-port 7400 --max-port 7700 --connect-sub tcp://127.0.0.1:7114 --connect-push tcp://127.0.0.1:7116 --group-timeout 900 --public-ip localhost --storage-url http://localhost:7100/ --adb-host 127.0.0.1 --adb-port 5037 --vnc-initial-size 600x800" INF/util:procutil 13900 [] Forking "/home/appium/appium-soft/node-v4.4.0-linux-x64/lib/node_modules/.stf_npminstall/stf/1.1.1/stf/lib/cli.js auth-mock --port 7120 --secret kute kittykat --app-url http://localhost:7100/" INF/util:procutil 13900 [] Forking "/home/appium/appium-soft/node-v4.4.0-linux-x64/lib/node_modules/.stf_npminstall/stf/1.1.1/stf/lib/cli.js app --port 7105 --secret kute kittykat --auth-url http://localhost:7100/auth/mock/ --websocket-url http://localhost:7110/" INF/util:procutil 13900 [] Forking "/home/appium/appium-soft/node-v4.4.0-linux-x64/lib/node_modules/.stf_npminstall/stf/1.1.1/stf/lib/cli.js websocket --port 7110 --secret kute kittykat --storage-url http://localhost:7100/ --connect-sub tcp://127.0.0.1:7111 --connect-push tcp://127.0.0.1:7113" INF/util:procutil 13900 [] Forking "/home/appium/appium-soft/node-v4.4.0-linux-x64/lib/node_modules/.stf_npminstall/stf/1.1.1/stf/lib/cli.js storage-temp --port 7102" INF/util:procutil 13900 [] Forking "/home/appium/appium-soft/node-v4.4.0-linux-x64/lib/node_modules/.stf_npminstall/stf/1.1.1/stf/lib/cli.js storage-plugin-image --port 7103 --storage-url http://localhost:7100/" INF/util:procutil 13900 [] Forking "/home/appium/appium-soft/node-v4.4.0-linux-x64/lib/node_modules/.stf_npminstall/stf/1.1.1/stf/lib/cli.js storage-plugin-apk --port 7104 --storage-url http://localhost:7100/" INF/util:procutil 13900 [] Forking "/home/appium/appium-soft/node-v4.4.0-linux-x64/lib/node_modules/.stf_npminstall/stf/1.1.1/stf/lib/cli.js poorxy --port 7100 --app-url http://localhost:7105/ --auth-url http://localhost:7120/ --websocket-url http://localhost:7110/ --storage-url http://localhost:7102/ --storage-plugin-image-url http://localhost:7103/ --storage-plugin-apk-url http://localhost:7104/" /home/appium/appium-soft/node-v4.4.0-linux-x64/lib/node_modules/.stf_npminstall/bindings/1.2.1/bindings/bindings.js:91 throw err ^ Error: Could not locate the bindings file. Tried: → /home/appium/appium-soft/node-v4.4.0-linux-x64/lib/node_modules/.stf_npminstall/zmq/2.14.0/zmq/build/zmq.node → /home/appium/appium-soft/node-v4.4.0-linux-x64/lib/node_modules/.stf_npminstall/zmq/2.14.0/zmq/build/Debug/zmq.node → /home/appium/appium-soft/node-v4.4.0-linux-x64/lib/node_modules/.stf_npminstall/zmq/2.14.0/zmq/build/Release/zmq.node → /home/appium/appium-soft/node-v4.4.0-linux-x64/lib/node_modules/.stf_npminstall/zmq/2.14.0/zmq/out/Debug/zmq.node → /home/appium/appium-soft/node-v4.4.0-linux-x64/lib/node_modules/.stf_npminstall/zmq/2.14.0/zmq/Debug/zmq.node → /home/appium/appium-soft/node-v4.4.0-linux-x64/lib/node_modules/.stf_npminstall/zmq/2.14.0/zmq/out/Release/zmq.node → /home/appium/appium-soft/node-v4.4.0-linux-x64/lib/node_modules/.stf_npminstall/zmq/2.14.0/zmq/Release/zmq.node → /home/appium/appium-soft/node-v4.4.0-linux-x64/lib/node_modules/.stf_npminstall/zmq/2.14.0/zmq/build/default/zmq.node → /home/appium/appium-soft/node-v4.4.0-linux-x64/lib/node_modules/.stf_npminstall/zmq/2.14.0/zmq/compiled/4.4.0/linux/x64/zmq.node at bindings (/home/appium/appium-soft/node-v4.4.0-linux-x64/lib/node_modules/.stf_npminstall/bindings/1.2.1/bindings/bindings.js:88:9) at Object.
(/home/appium/appium-soft/node-v4.4.0-linux-x64/lib/node_modules/.stf_npminstall/zmq/2.14.0/zmq/lib/index.js:6:30) at Module._compile (module.js:409:26) at Object.Module._extensions..js (module.js:416:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Module.require (module.js:353:17) at require (internal/module.js:12:17) at Object. (/home/appium/appium-soft/node-v4.4.0-linux-x64/lib/node_modules/.stf_npminstall/zmq/2.14.0/zmq/index.js:2:18) at Module._compile (module.js:409:26) at Object.Module._extensions..js (module.js:416:10) at Module.load (module.js:343:32) at Function.Module.load (module.js:300:12) at Module.require (module.js:353:17) at require (internal/module.js:12:17) at Object. (/home/appium/appium-soft/node-v4.4.0-linux-x64/lib/node_modules/.stf_npminstall/stf/1.1.1/stf/lib/util/zmqutil.js:7:11) FTL/cli:local 13900 [ ] Child process had an error ExitError: Exit code "1" at ChildProcess.(/home/appium/appium-soft/node-v4.4.0-linux-x64/lib/node_modules/.stf_npminstall/stf/1.1.1/stf/lib/util/procutil.js:49:23) at emitTwo (events.js:87:13) at ChildProcess.emit (events.js:172:7) at Process.ChildProcess.handle.onexit (internal/child_process.js:200:12) INF/cli:local 13900 [] Shutting down all child processes
---------------below is my install log for stf-----------------------
[root@Appium appium-soft]# cnpm install stf -g install ldapjs from git git+https://github.com/mcavage/node-ldapjs.git#acc1ca8f4314fd9d67561feabc8ce4c235076a5e, may be very slow, please keep patience git clone -b acc1ca8f4314fd9d67561feabc8ce4c235076a5e https://github.com/mcavage/node-ldapjs.git /home/appium/appium-soft/node-v4.4.0-linux-x64/lib/node_modules/.stf_npminstall/.tmp/2fc112fb-dac6-4029-b72f-23dd69816c1a --depth=1 Initialized empty Git repository in /home/appium/appium-soft/node-v4.4.0-linux-x64/lib/node_modules/.stf_npminstall/.tmp/2fc112fb-dac6-4029-b72f-23dd69816c1a/.git/ [[email protected]] deprecate: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0. install xmlhttprequest from remote https://github.com/rase-/node-XMLHttpRequest/archive/a6b6f2.tar.gz, may be very slow, please keep patience install global from remote https://github.com/component/global/archive/v2.0.1.tar.gz, may be very slow, please keep patience remote: Counting objects: 1234, done. remote: Compressing objects: 100% (821/821), done. remote: Total 1234 (delta 640), reused 902 (delta 390), pack-reused 0 Receiving objects: 100% (1234/1234), 1.04 MiB | 229 KiB/s, done. Resolving deltas: 100% (640/640), done. warning: Remote branch acc1ca8f4314fd9d67561feabc8ce4c235076a5e not found in upstream origin, using HEAD instead [[email protected]] link /home/appium/appium-soft/node-v4.4.0-linux-x64/bin/stf@ -> ../lib/node_modules/.stf_npminstall/stf/1.1.1/stf/bin/stf [stf@_] installed at node_modules/.stf_npminstall/stf/1.1.1/stf (0 packages, use 21s, speed 155.89kB/s, json 3.2MB, tarball 0B) excute post install scripts... [[email protected]] scripts.install: "node-gyp rebuild" at /home/appium/appium-soft/node-v4.4.0-linux-x64/lib/node_modules/.stf_npminstall/utf-8-validate/1.2.1/utf-8-validate make: Entering directory
/home/appium/appium-soft/node-v4.4.0-linux-x64/lib/node_modules/.stf_npminstall/utf-8-validate/1.2.1/utf-8-validate/build' CXX(target) Release/obj.target/validation/src/validation.o In file included from ../src/validation.cc:15: ../../../../nan/2.2.0/nan/nan.h:41:3: error: #error This version of node/NAN/v8 requires a C++11 compiler In file included from ../src/validation.cc:7: /root/.node-gyp/4.4.0/include/node/v8.h:336: error: expected unqualified-id before ‘using’ /root/.node-gyp/4.4.0/include/node/v8.h: In constructor ‘v8::MaybeLocal<T>::MaybeLocal()’: /root/.node-gyp/4.4.0/include/node/v8.h:353: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/4.4.0/include/node/v8.h: In member function ‘bool v8::MaybeLocal<T>::IsEmpty() const’: /root/.node-gyp/4.4.0/include/node/v8.h:360: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/4.4.0/include/node/v8.h: In member function ‘bool v8::MaybeLocal<T>::ToLocal(v8::Local<S>_) const’: /root/.node-gyp/4.4.0/include/node/v8.h:364: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/4.4.0/include/node/v8.h: In member function ‘bool v8::WeakCallbackInfo<T>::IsFirstPass() const’: /root/.node-gyp/4.4.0/include/node/v8.h:430: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/4.4.0/include/node/v8.h: At global scope: /root/.node-gyp/4.4.0/include/node/v8.h:469: error: expected unqualified-id before ‘using’ /root/.node-gyp/4.4.0/include/node/v8.h: In constructor ‘v8::Global<T>::Global()’: /root/.node-gyp/4.4.0/include/node/v8.h:790: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/4.4.0/include/node/v8.h: In constructor ‘v8::Global<T>::Global(v8::Global<T>&&)’: /root/.node-gyp/4.4.0/include/node/v8.h:815: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/4.4.0/include/node/v8.h: In member function ‘v8::Global<T>& v8::Global<T>::operator=(v8::Global<S>&&)’: /root/.node-gyp/4.4.0/include/node/v8.h:827: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/4.4.0/include/node/v8.h: At global scope: /root/.node-gyp/4.4.0/include/node/v8.h:852: error: expected unqualified-id before ‘using’ /root/.node-gyp/4.4.0/include/node/v8.h:1089: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/4.4.0/include/node/v8.h:1095: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/4.4.0/include/node/v8.h: In member function ‘v8::MaybeLocalv8::Object v8::Function::NewInstance(v8::Localv8::Context) const’: /root/.node-gyp/4.4.0/include/node/v8.h:3205: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/4.4.0/include/node/v8.h: In member function ‘v8::Local<T> v8::MaybeLocal<T>::ToLocalChecked()’: /root/.node-gyp/4.4.0/include/node/v8.h:7164: error: ‘nullptr’ was not declared in this scope In file included from ../../../../nan/2.2.0/nan/nan.h:194, from ../src/validation.cc:15: ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h: At global scope: ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h:13: error: expected unqualified-id before ‘using’ ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h:16: error: expected unqualified-id before ‘using’ ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h:19: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h:24: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h:31: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h:36: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h:41: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h:46: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h:51: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h:59: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h:64: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h:69: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h:76: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h:83: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h:91: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h:98: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h:108: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h:114: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h:118: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h:125: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h:130: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h:135: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h:139: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h:145: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h:150: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h:156: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h:162: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h:168: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h:174: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h:180: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h:186: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h:194: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h:201: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h:205: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h:209: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h:213: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h:217: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan_maybe_43_inl.h:223: error: expected initializer before ‘<’ token In file included from ../../../../nan/2.2.0/nan/nan.h:199, from ../src/validation.cc:15: ../../../../nan/2.2.0/nan/nan_converters.h:14: error: ISO C++ forbids declaration of ‘MaybeLocal’ with no type ../../../../nan/2.2.0/nan/nan_converters.h:14: error: expected ‘;’ before ‘<’ token ../../../../nan/2.2.0/nan/nan_converters.h:16: error: ISO C++ forbids declaration of ‘Maybe’ with no type ../../../../nan/2.2.0/nan/nan_converters.h:16: error: expected ‘;’ before ‘<’ token ../../../../nan/2.2.0/nan/nan_converters.h:26: error: ‘return_t’ does not name a type ../../../../nan/2.2.0/nan/nan_converters.h:27: error: ‘return_t’ does not name a type ../../../../nan/2.2.0/nan/nan_converters.h:28: error: ‘return_t’ does not name a type ../../../../nan/2.2.0/nan/nan_converters.h:29: error: ‘return_t’ does not name a type ../../../../nan/2.2.0/nan/nan_converters.h:30: error: ‘return_t’ does not name a type ../../../../nan/2.2.0/nan/nan_converters.h:31: error: ‘return_t’ does not name a type ../../../../nan/2.2.0/nan/nan_converters.h:32: error: ‘return_t’ does not name a type ../../../../nan/2.2.0/nan/nan_converters.h:42: error: ‘return_t’ does not name a type ../../../../nan/2.2.0/nan/nan_converters.h:43: error: ‘return_t’ does not name a type ../../../../nan/2.2.0/nan/nan_converters.h:44: error: ‘return_t’ does not name a type ../../../../nan/2.2.0/nan/nan_converters.h:45: error: ‘return_t’ does not name a type ../../../../nan/2.2.0/nan/nan_converters.h:46: error: ‘return_t’ does not name a type In file included from ../../../../nan/2.2.0/nan/nan_converters.h:59, from ../../../../nan/2.2.0/nan/nan.h:199, from ../src/validation.cc:15: ../../../../nan/2.2.0/nan/nan_converters_43_inl.h:18: error: ‘return_t’ in class ‘Nan::imp::ToFactoryv8::Boolean’ does not name a type ../../../../nan/2.2.0/nan/nan_converters_43_inl.h:19: error: ‘return_t’ in class ‘Nan::imp::ToFactoryv8::Number’ does not name a type ../../../../nan/2.2.0/nan/nan_converters_43_inl.h:20: error: ‘return_t’ in class ‘Nan::imp::ToFactoryv8::String’ does not name a type ../../../../nan/2.2.0/nan/nan_converters_43_inl.h:21: error: ‘return_t’ in class ‘Nan::imp::ToFactoryv8::Object’ does not name a type ../../../../nan/2.2.0/nan/nan_converters_43_inl.h:22: error: ‘return_t’ in class ‘Nan::imp::ToFactoryv8::Integer’ does not name a type ../../../../nan/2.2.0/nan/nan_converters_43_inl.h:23: error: ‘return_t’ in class ‘Nan::imp::ToFactoryv8::Uint32’ does not name a type ../../../../nan/2.2.0/nan/nan_converters_43_inl.h:24: error: ‘return_t’ in class ‘Nan::imp::ToFactoryv8::Int32’ does not name a type ../../../../nan/2.2.0/nan/nan_converters_43_inl.h:34: error: ‘return_t’ in class ‘Nan::imp::ToFactory<bool>’ does not name a type ../../../../nan/2.2.0/nan/nan_converters_43_inl.h:35: error: ‘return_t’ in class ‘Nan::imp::ToFactory<double>’ does not name a type ../../../../nan/2.2.0/nan/nan_converters_43_inl.h:36: error: ‘return_t’ in class ‘Nan::imp::ToFactory<long int>’ does not name a type ../../../../nan/2.2.0/nan/nan_converters_43_inl.h:37: error: ‘return_t’ in class ‘Nan::imp::ToFactory<unsigned int>’ does not name a type ../../../../nan/2.2.0/nan/nan_converters_43_inl.h:38: error: ‘return_t’ in class ‘Nan::imp::ToFactory<int>’ does not name a type In file included from ../../../../nan/2.2.0/nan/nan.h:200, from ../src/validation.cc:15: ../../../../nan/2.2.0/nan/nan_new.h: In function ‘v8::Local<T> Nan::imp::To(v8::Localv8::Integer) [with T = v8::Integer]’: ../../../../nan/2.2.0/nan/nan_new.h:21: error: no matching function for call to ‘To(v8::Localv8::Integer&)’ ../../../../nan/2.2.0/nan/nan_new.h: In function ‘v8::Local<T> Nan::imp::To(v8::Localv8::Integer) [with T = v8::Int32]’: ../../../../nan/2.2.0/nan/nan_new.h:28: error: no matching function for call to ‘To(v8::Localv8::Integer&)’ ../../../../nan/2.2.0/nan/nan_new.h: In function ‘v8::Local<T> Nan::imp::To(v8::Localv8::Integer) [with T = v8::Uint32]’: ../../../../nan/2.2.0/nan/nan_new.h:35: error: no matching function for call to ‘To(v8::Localv8::Integer&)’ ../../../../nan/2.2.0/nan/nan_new.h: At global scope: ../../../../nan/2.2.0/nan/nan_new.h:43: error: ISO C++ forbids declaration of ‘MaybeLocal’ with no type ../../../../nan/2.2.0/nan/nan_new.h:43: error: expected ‘;’ before ‘<’ token ../../../../nan/2.2.0/nan/nan_new.h:75: error: ‘return_t’ does not name a type ../../../../nan/2.2.0/nan/nan_new.h:141: error: ‘return_t’ does not name a type ../../../../nan/2.2.0/nan/nan_new.h:147: error: ‘return_t’ does not name a type ../../../../nan/2.2.0/nan/nan_new.h:148: error: ‘return_t’ does not name a type ../../../../nan/2.2.0/nan/nan_new.h:160: error: ‘return_t’ does not name a type ../../../../nan/2.2.0/nan/nan_new.h:161: error: ‘return_t’ does not name a type ../../../../nan/2.2.0/nan/nan_new.h:162: error: ‘return_t’ does not name a type ../../../../nan/2.2.0/nan/nan_new.h:163: error: ‘return_t’ does not name a type ../../../../nan/2.2.0/nan/nan_new.h:165: error: ‘return_t’ does not name a type ../../../../nan/2.2.0/nan/nan_new.h:166: error: ‘return_t’ does not name a type ../../../../nan/2.2.0/nan/nan_new.h:182: error: ‘return_t’ does not name a type ../../../../nan/2.2.0/nan/nan_new.h:183: error: ‘return_t’ does not name a type In file included from ../../../../nan/2.2.0/nan/nan_new.h:189, from ../../../../nan/2.2.0/nan/nan.h:200, from ../src/validation.cc:15: ../../../../nan/2.2.0/nan/nan_implementation_12_inl.h:56: error: ‘return_t’ in class ‘Nan::imp::Factoryv8::Date’ does not name a type ../../../../nan/2.2.0/nan/nan_implementation_12_inl.h: In static member function ‘static v8::Localv8::Function Nan::imp::Factoryv8::Function::New(void (_)(const Nan::FunctionCallbackInfov8::Value&), v8::Localv8::Value)’: ../../../../nan/2.2.0/nan/nan_implementation_12_inl.h:90: error: ‘NewInstance’ was not declared in this scope ../../../../nan/2.2.0/nan/nan_implementation_12_inl.h: In static member function ‘static v8::Localv8::FunctionTemplate Nan::imp::Factoryv8::FunctionTemplate::New(void (_)(const Nan::FunctionCallbackInfov8::Value&), v8::Localv8::Value, v8::Localv8::Signature)’: ../../../../nan/2.2.0/nan/nan_implementation_12_inl.h:118: error: ‘NewInstance’ was not declared in this scope ../../../../nan/2.2.0/nan/nan_implementation_12_inl.h: At global scope: ../../../../nan/2.2.0/nan/nan_implementation_12_inl.h:197: error: ‘return_t’ in class ‘Nan::imp::Factoryv8::RegExp’ does not name a type ../../../../nan/2.2.0/nan/nan_implementation_12_inl.h:216: error: ‘return_t’ in class ‘Nan::imp::Factoryv8::Script’ does not name a type ../../../../nan/2.2.0/nan/nan_implementation_12_inl.h:222: error: ‘return_t’ in class ‘Nan::imp::Factoryv8::Script’ does not name a type ../../../../nan/2.2.0/nan/nan_implementation_12_inl.h:254: error: ‘return_t’ in class ‘Nan::imp::Factoryv8::String’ does not name a type ../../../../nan/2.2.0/nan/nan_implementation_12_inl.h:262: error: ‘return_t’ in class ‘Nan::imp::Factoryv8::String’ does not name a type ../../../../nan/2.2.0/nan/nan_implementation_12_inl.h:268: error: ‘return_t’ in class ‘Nan::imp::Factoryv8::String’ does not name a type ../../../../nan/2.2.0/nan/nan_implementation_12_inl.h:275: error: ‘return_t’ in class ‘Nan::imp::Factoryv8::String’ does not name a type ../../../../nan/2.2.0/nan/nan_implementation_12_inl.h:281: error: ‘return_t’ in class ‘Nan::imp::Factoryv8::String’ does not name a type ../../../../nan/2.2.0/nan/nan_implementation_12_inl.h:286: error: ‘return_t’ in class ‘Nan::imp::Factoryv8::String’ does not name a type ../../../../nan/2.2.0/nan/nan_implementation_12_inl.h:347: error: ‘return_t’ in class ‘Nan::imp::Factoryv8::UnboundScript’ does not name a type ../../../../nan/2.2.0/nan/nan_implementation_12_inl.h:354: error: ‘return_t’ in class ‘Nan::imp::Factoryv8::UnboundScript’ does not name a type In file included from ../../../../nan/2.2.0/nan/nan.h:200, from ../src/validation.cc:15: ../../../../nan/2.2.0/nan/nan_new.h:293: error: ‘return_t’ in class ‘Nan::imp::Factoryv8::String’ does not name a type ../../../../nan/2.2.0/nan/nan_new.h:299: error: ‘return_t’ in class ‘Nan::imp::Factoryv8::String’ does not name a type ../../../../nan/2.2.0/nan/nan_new.h:305: error: ‘return_t’ in class ‘Nan::imp::Factoryv8::String’ does not name a type ../../../../nan/2.2.0/nan/nan_new.h:311: error: ‘return_t’ in class ‘Nan::imp::Factoryv8::String’ does not name a type ../../../../nan/2.2.0/nan/nan_new.h:317: error: ‘return_t’ in class ‘Nan::imp::Factoryv8::String’ does not name a type ../../../../nan/2.2.0/nan/nan_new.h:323: error: ‘return_t’ in class ‘Nan::imp::Factoryv8::String’ does not name a type ../../../../nan/2.2.0/nan/nan_new.h:329: error: ‘return_t’ in class ‘Nan::imp::Factoryv8::String’ does not name a type ../../../../nan/2.2.0/nan/nan_new.h:335: error: ‘return_t’ in class ‘Nan::imp::Factoryv8::RegExp’ does not name a type In file included from ../src/validation.cc:15: ../../../../nan/2.2.0/nan/nan.h: In function ‘v8::Localv8::Value Nan::Error(const char_)’: ../../../../nan/2.2.0/nan/nan.h:659: error: ‘class v8::Localv8::Boolean’ has no member named ‘ToLocalChecked’ ../../../../nan/2.2.0/nan/nan.h: In function ‘void Nan::ThrowError(const char_)’: ../../../../nan/2.2.0/nan/nan.h:659: error: ‘class v8::Localv8::Boolean’ has no member named ‘ToLocalChecked’ ../../../../nan/2.2.0/nan/nan.h: In function ‘v8::Localv8::Value Nan::RangeError(const char_)’: ../../../../nan/2.2.0/nan/nan.h:660: error: ‘class v8::Localv8::Boolean’ has no member named ‘ToLocalChecked’ ../../../../nan/2.2.0/nan/nan.h: In function ‘void Nan::ThrowRangeError(const char_)’: ../../../../nan/2.2.0/nan/nan.h:660: error: ‘class v8::Localv8::Boolean’ has no member named ‘ToLocalChecked’ ../../../../nan/2.2.0/nan/nan.h: In function ‘v8::Localv8::Value Nan::ReferenceError(const char_)’: ../../../../nan/2.2.0/nan/nan.h:661: error: ‘class v8::Localv8::Boolean’ has no member named ‘ToLocalChecked’ ../../../../nan/2.2.0/nan/nan.h: In function ‘void Nan::ThrowReferenceError(const char_)’: ../../../../nan/2.2.0/nan/nan.h:661: error: ‘class v8::Localv8::Boolean’ has no member named ‘ToLocalChecked’ ../../../../nan/2.2.0/nan/nan.h: In function ‘v8::Localv8::Value Nan::SyntaxError(const char_)’: ../../../../nan/2.2.0/nan/nan.h:662: error: ‘class v8::Localv8::Boolean’ has no member named ‘ToLocalChecked’ ../../../../nan/2.2.0/nan/nan.h: In function ‘void Nan::ThrowSyntaxError(const char_)’: ../../../../nan/2.2.0/nan/nan.h:662: error: ‘class v8::Localv8::Boolean’ has no member named ‘ToLocalChecked’ ../../../../nan/2.2.0/nan/nan.h: In function ‘v8::Localv8::Value Nan::TypeError(const char_)’: ../../../../nan/2.2.0/nan/nan.h:663: error: ‘class v8::Localv8::Boolean’ has no member named ‘ToLocalChecked’ ../../../../nan/2.2.0/nan/nan.h: In function ‘void Nan::ThrowTypeError(const char_)’: ../../../../nan/2.2.0/nan/nan.h:663: error: ‘class v8::Localv8::Boolean’ has no member named ‘ToLocalChecked’ ../../../../nan/2.2.0/nan/nan.h: At global scope: ../../../../nan/2.2.0/nan/nan.h:671: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan.h:693: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan.h:709: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan.h:722: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan.h:739: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan.h:745: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan.h:753: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan.h:760: error: expected initializer before ‘<’ token ../../../../nan/2.2.0/nan/nan.h:766: error: expected initializer before ‘<’ token /root/.node-gyp/4.4.0/include/node/v8.h: In member function ‘void Nan::Callback::SetFunction(const v8::Localv8::Function&)’: /root/.node-gyp/4.4.0/include/node/v8.h:3021: error: argument dependent lookup finds ‘class v8::Set’ ../../../../nan/2.2.0/nan/nan.h:1402: error: in call to ‘Set’ ../../../../nan/2.2.0/nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char_, const v8::Localv8::Value&)’: ../../../../nan/2.2.0/nan/nan.h:1524: error: ‘class v8::Localv8::Boolean’ has no member named ‘ToLocalChecked’ ../../../../nan/2.2.0/nan/nan.h: In member function ‘v8::Localv8::Value Nan::AsyncWorker::GetFromPersistent(const char_) const’: ../../../../nan/2.2.0/nan/nan.h:1542: error: ‘class v8::Localv8::Boolean’ has no member named ‘ToLocalChecked’ ../../../../nan/2.2.0/nan/nan.h: In member function ‘virtual void Nan::AsyncWorker::HandleErrorCallback()’: ../../../../nan/2.2.0/nan/nan.h:1576: error: no matching function for call to ‘New(const char_)’ ../../../../nan/2.2.0/nan/nan.h: In function ‘void Nan::SetMethod(const T&, const char_, void (_)(const Nan::FunctionCallbackInfov8::Value&))’: ../../../../nan/2.2.0/nan/nan.h:1865: error: there are no arguments to ‘GetFunction’ that depend on a template parameter, so a declaration of ‘GetFunction’ must be available ../../../../nan/2.2.0/nan/nan.h:1865: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated) ../../../../nan/2.2.0/nan/nan.h:1866: error: ‘class v8::Localv8::Boolean’ has no member named ‘ToLocalChecked’ ../../../../nan/2.2.0/nan/nan.h: In function ‘void Nan::SetPrototypeMethod(v8::Localv8::FunctionTemplate, const char_, void (_)(const Nan::FunctionCallbackInfov8::Value&))’: ../../../../nan/2.2.0/nan/nan.h:1878: error: ‘GetFunction’ was not declared in this scope ../../../../nan/2.2.0/nan/nan.h:1879: error: ‘class v8::Localv8::Boolean’ has no member named ‘ToLocalChecked’ ../../../../nan/2.2.0/nan/nan.h: In function ‘void Nan::SetAccessor(v8::Localv8::ObjectTemplate, v8::Localv8::String, void (_)(v8::Localv8::String, const Nan::PropertyCallbackInfov8::Value&), void (_)(v8::Localv8::String, v8::Localv8::Value, const Nan::PropertyCallbackInfo<void>&), v8::Localv8::Value, v8::AccessControl, v8::PropertyAttribute, Nan::imp::Sig)’: ../../../../nan/2.2.0/nan/nan.h:1904: error: ‘NewInstance’ was not declared in this scope ../../../../nan/2.2.0/nan/nan.h: In function ‘bool Nan::SetAccessor(v8::Localv8::Object, v8::Localv8::String, void (_)(v8::Localv8::String, const Nan::PropertyCallbackInfov8::Value&), void (_)(v8::Localv8::String, v8::Localv8::Value, const Nan::PropertyCallbackInfo<void>&), v8::Localv8::Value, v8::AccessControl, v8::PropertyAttribute)’: ../../../../nan/2.2.0/nan/nan.h:1947: error: ‘NewInstance’ was not declared in this scope ../../../../nan/2.2.0/nan/nan.h: In function ‘void Nan::SetNamedPropertyHandler(v8::Localv8::ObjectTemplate, void (_)(v8::Localv8::String, const Nan::PropertyCallbackInfov8::Value&), void (_)(v8::Localv8::String, v8::Localv8::Value, const Nan::PropertyCallbackInfov8::Value&), void (_)(v8::Localv8::String, const Nan::PropertyCallbackInfov8::Integer&), void (_)(v8::Localv8::String, const Nan::PropertyCallbackInfov8::Boolean&), void (_)(const Nan::PropertyCallbackInfov8::Array&), v8::Localv8::Value)’: ../../../../nan/2.2.0/nan/nan.h:1995: error: ‘NewInstance’ was not declared in this scope ../../../../nan/2.2.0/nan/nan.h: In function ‘void Nan::SetIndexedPropertyHandler(v8::Localv8::ObjectTemplate, void (_)(uint32_t, const Nan::PropertyCallbackInfov8::Value&), void (_)(uint32_t, v8::Localv8::Value, const Nan::PropertyCallbackInfov8::Value&), void (_)(uint32_t, const Nan::PropertyCallbackInfov8::Integer&), void (_)(uint32_t, const Nan::PropertyCallbackInfov8::Boolean&), void (_)(const Nan::PropertyCallbackInfov8::Array&), v8::Localv8::Value)’: ../../../../nan/2.2.0/nan/nan.h:2065: error: ‘NewInstance’ was not declared in this scope ../../../../nan/2.2.0/nan/nan.h: In function ‘void Nan::SetCallHandler(v8::Localv8::FunctionTemplate, void (_)(const Nan::FunctionCallbackInfov8::Value&), v8::Localv8::Value)’: ../../../../nan/2.2.0/nan/nan.h:2120: error: ‘NewInstance’ was not declared in this scope ../../../../nan/2.2.0/nan/nan.h: In function ‘void Nan::SetCallAsFunctionHandler(v8::Localv8::ObjectTemplate, void (_)(const Nan::FunctionCallbackInfov8::Value&), v8::Localv8::Value)’: ../../../../nan/2.2.0/nan/nan.h:2142: error: ‘NewInstance’ was not declared in this scope In file included from ../src/validation.cc:15: ../../../../nan/2.2.0/nan/nan.h: In function ‘void Nan::Export(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE, const char_, void (_)(const Nan::FunctionCallbackInfov8::Value&))’: ../../../../nan/2.2.0/nan/nan.h:2169: error: no matching function for call to ‘New(const char_&)’ ../../../../nan/2.2.0/nan/nan.h:2170: error: ‘GetFunction’ was not declared in this scope /root/.node-gyp/4.4.0/include/node/v8.h:3021: error: argument dependent lookup finds ‘class v8::Set’ ../../../../nan/2.2.0/nan/nan.h:2170: error: in call to ‘Set’ ../../../../nan/2.2.0/nan/nan.h: In constructor ‘Nan::Tap::Tap(v8::Localv8::Value)’: ../../../../nan/2.2.0/nan/nan.h:2177: error: no matching function for call to ‘To(v8::Localv8::Value&)’ ../../../../nan/2.2.0/nan/nan.h: In member function ‘void Nan::Tap::ok(bool, const char_)’: ../../../../nan/2.2.0/nan/nan.h:2190: error: ‘class v8::Localv8::Boolean’ has no member named ‘ToLocalChecked’ ../../../../nan/2.2.0/nan/nan.h: In member function ‘void Nan::Tap::pass(const char_)’: ../../../../nan/2.2.0/nan/nan.h:2196: error: ‘class v8::Localv8::Boolean’ has no member named ‘ToLocalChecked’ ../../../../nan/2.2.0/nan/nan.h: At global scope: ../../../../nan/2.2.0/nan/nan.h:2220: error: ISO C++ forbids declaration of ‘MaybeLocal’ with no type ../../../../nan/2.2.0/nan/nan.h:2220: error: expected ‘;’ before ‘<’ token ../../../../nan/2.2.0/nan/nan.h:2223: error: expected ‘;’ before ‘}’ token ../../../../nan/2.2.0/nan/nan.h:2225: error: ‘MaybeLocal’ was not declared in this scope ../../../../nan/2.2.0/nan/nan.h:2225: error: template argument 1 is invalid ../../../../nan/2.2.0/nan/nan.h:2225: error: expected unqualified-id before ‘>’ token ../../../../nan/2.2.0/nan/nan.h:2234: error: expected constructor, destructor, or type conversion before ‘<’ token ../src/validation.cc:107: error: ‘v8::Handle’ has not been declared ../src/validation.cc:107: error: expected ‘,’ or ‘...’ before ‘<’ token ../src/validation.cc: In static member function ‘static void Validation::Initialize(int)’: ../src/validation.cc:113: error: ‘Set’ is not a member of ‘Nan’ ../src/validation.cc:113: error: ‘target’ was not declared in this scope ../src/validation.cc:113: error: no matching function for call to ‘New(const char [11])’ ../src/validation.cc: At global scope: ../src/validation.cc:141: error: variable or field ‘init’ declared void ../src/validation.cc:141: error: ‘Handle’ was not declared in this scope ../src/validation.cc:141: error: expected primary-expression before ‘>’ token ../src/validation.cc:141: error: ‘target’ was not declared in this scope ../src/validation.cc:147: error: ‘init’ was not declared in this scope ../src/validation.cc:147: error: too many initializers for ‘node::node_module’ In file included from ../src/validation.cc:15: ../../../../nan/2.2.0/nan/nan.h: In function ‘void Nan::SetMethod(const T&, const char_, void (_)(const Nan::FunctionCallbackInfov8::Value&)) [with T = v8::Localv8::FunctionTemplate]’: ../src/validation.cc:112: instantiated from here ../../../../nan/2.2.0/nan/nan.h:1865: error: ‘GetFunction’ was not declared in this scope make: **\* [Release/obj.target/validation/src/validation.o] Error 1 make: Leaving directory/home/appium/appium-soft/node-v4.4.0-linux-x64/lib/node_modules/.stf_npminstall/utf-8-validate/1.2.1/utf-8-validate/build' gyp ERR! build error gyp ERR! stack Error:makefailed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/home/appium/appium-soft/node-v4.4.0-linux-x64/lib/node_modules/cnpm/node_modules/npminstall/node_modules/node-gyp/lib/build.js:276:23) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) gyp ERR! System Linux 2.6.32-573.18.1.el6.x86_64 gyp ERR! command "/home/appium/appium-soft/node-v4.4.0-linux-x64/bin/node" "/home/appium/appium-soft/node-v4.4.0-linux-x64/lib/node_modules/cnpm/node_modules/npminstall/node_modules/.bin/node-gyp" "rebuild" gyp ERR! cwd /home/appium/appium-soft/node-v4.4.0-linux-x64/lib/node_modules/.stf_npminstall/utf-8-validate/1.2.1/utf-8-validate gyp ERR! node -v v4.4.0 gyp ERR! node-gyp -v v3.2.1 gyp ERR! not ok [Error: Run "sh -c node-gyp rebuild" error, exit code 1 at ChildProcess.(/home/appium/appium-soft/node-v4.4.0-linux-x64/lib/node_modules/cnpm/node_modules/npminstall/node_modules/runscript/index.js:67:21) at emitTwo (events.js:87:13) at ChildProcess.emit (events.js:172:7) at maybeClose (internal/child_process.js:827:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)@%s] optional error: %s All packages installed (359 packages installed from npm registry, 2 packages installed from remote url, 1 packages installed from git, use 22s, speed 148.73kB/s, json 428(3.2MB), tarball 0B)
Can you please try with npm i [email protected] --global this version.
Delete the zmq in node_modules, then:
npm install zmq