RocketChat / Rocket.Chat.ReactNative

Rocket.Chat mobile clients
https://rocket.chat
MIT License
2.01k stars 1.17k forks source link

cant run app with npm install and yarn #297

Closed mnlbox closed 6 years ago

mnlbox commented 6 years ago

I want to install and run this app. I'm running npm install and yarn But I got below error: Can you help me to find issue?

npm WARN notice [SECURITY] sshpk has 1 high vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=sshpk&version=1.13.1 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] ws has 1 high vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=ws&version=2.3.1 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] ws has 1 high vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=ws&version=2.3.1 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] debug has 1 low vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=debug&version=2.2.0 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] debug has 1 low vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=debug&version=2.3.3 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] parsejson has 1 high vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=parsejson&version=0.0.3 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] lodash has 1 low vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=lodash&version=2.4.2 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] macaddress has 1 critical vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=macaddress&version=0.2.8 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] hoek has 1 moderate vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=hoek&version=4.2.0 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN notice [SECURITY] deep-extend has 1 low vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=deep-extend&version=0.4.2 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN rm not removing /home/zb/Documents/MyFiles/Projects/trc/Rocket.Chat.ReactNative/node_modules/.bin/jest as it wasn't installed by /home/zb/Documents/MyFiles/Projects/trc/Rocket.Chat.ReactNative/node_modules/jest
npm WARN rm not removing /home/zb/Documents/MyFiles/Projects/trc/Rocket.Chat.ReactNative/node_modules/.bin/webpack as it wasn't installed by /home/zb/Documents/MyFiles/Projects/trc/Rocket.Chat.ReactNative/node_modules/webpack
npm WARN rm not removing /home/zb/Documents/MyFiles/Projects/trc/Rocket.Chat.ReactNative/node_modules/.bin/uglifyjs as it wasn't installed by /home/zb/Documents/MyFiles/Projects/trc/Rocket.Chat.ReactNative/node_modules/uglify-js
npm WARN rm not removing /home/zb/Documents/MyFiles/Projects/trc/Rocket.Chat.ReactNative/node_modules/.bin/mkdirp as it wasn't installed by /home/zb/Documents/MyFiles/Projects/trc/Rocket.Chat.ReactNative/node_modules/mkdirp
npm WARN rm not removing /home/zb/Documents/MyFiles/Projects/trc/Rocket.Chat.ReactNative/node_modules/.bin/jsesc as it wasn't installed by /home/zb/Documents/MyFiles/Projects/trc/Rocket.Chat.ReactNative/node_modules/jsesc
npm WARN rm not removing /home/zb/Documents/MyFiles/Projects/trc/Rocket.Chat.ReactNative/node_modules/.bin/browserslist as it wasn't installed by /home/zb/Documents/MyFiles/Projects/trc/Rocket.Chat.ReactNative/node_modules/browserslist
npm WARN rm not removing /home/zb/Documents/MyFiles/Projects/trc/Rocket.Chat.ReactNative/node_modules/.bin/babylon as it wasn't installed by /home/zb/Documents/MyFiles/Projects/trc/Rocket.Chat.ReactNative/node_modules/babylon
npm WARN rm not removing /home/zb/Documents/MyFiles/Projects/trc/Rocket.Chat.ReactNative/node_modules/@babel/traverse/node_modules/.bin/babylon as it wasn't installed by /home/zb/Documents/MyFiles/Projects/trc/Rocket.Chat.ReactNative/node_modules/@babel/traverse/node_modules/babylon
npm WARN rm not removing /home/zb/Documents/MyFiles/Projects/trc/Rocket.Chat.ReactNative/node_modules/@babel/template/node_modules/.bin/babylon as it wasn't installed by /home/zb/Documents/MyFiles/Projects/trc/Rocket.Chat.ReactNative/node_modules/@babel/template/node_modules/babylon
npm WARN rm not removing /home/zb/Documents/MyFiles/Projects/trc/Rocket.Chat.ReactNative/node_modules/@babel/core/node_modules/.bin/babylon as it wasn't installed by /home/zb/Documents/MyFiles/Projects/trc/Rocket.Chat.ReactNative/node_modules/@babel/core/node_modules/babylon

> puppeteer@1.2.0 install /home/zb/Documents/MyFiles/Projects/trc/Rocket.Chat.ReactNative/node_modules/puppeteer
> node install.js

Downloading Chromium r543305 - 96.5 Mb [====================] 100% 0.0s 
Chromium downloaded to /home/zb/Documents/MyFiles/Projects/trc/Rocket.Chat.ReactNative/node_modules/puppeteer/.local-chromium/linux-543305

> realm@2.3.4 install /home/zb/Documents/MyFiles/Projects/trc/Rocket.Chat.ReactNative/node_modules/realm
> node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(404): https://static.realm.io/node-pre-gyp/2.3.4/realm-v2.3.4-node-v64-linux-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for realm@2.3.4 and node@10.1.0 (node-v64 ABI, glibc) (falling back to source compile with node-gyp) 
make: Entering directory '/home/zb/Documents/MyFiles/Projects/trc/Rocket.Chat.ReactNative/node_modules/realm/build'
  TOUCH Release/obj.target/OpenSSL.stamp
  ACTION binding_gyp_vendored_realm_target_download_realm /home/zb/Documents/MyFiles/Projects/trc/Rocket.Chat.ReactNative/node_modules/realm/vendor/realm-linux-x64
(node:8040) ExperimentalWarning: The fs.promises API is experimental
Resolved requirements: { CORE_SERVER_FOLDER: 'core',
  CORE_ARCHIVE: 'realm-core-5.4.0.tgz',
  CORE_ARCHIVE_ROOT: 'realm-core-5.4.0' }
No lockfile found at the target, proceeding.
Download url: https://static.realm.io/downloads/core/realm-core-5.4.0.tgz
Downloading realm-core-5.4.0.tgz [================================] (649k)
Extracting realm-core-5.4.0.tgz => /home/zb/Documents/MyFiles/Projects/trc/Rocket.Chat.ReactNative/node_modules/realm/vendor/realm-linux-x64
Success
  TOUCH Release/obj.target/vendored-realm.stamp
  TOUCH Release/obj.target/realm-core.stamp
  CXX(target) Release/obj.target/object-store/src/object-store/src/binding_callback_thread_observer.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/collection_notifications.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/index_set.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/list.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/object.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/placeholder.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/object_schema.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/object_store.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/results.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/schema.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/shared_realm.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/thread_safe_reference.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/impl/collection_change_builder.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/impl/collection_notifier.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/impl/list_notifier.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/impl/object_notifier.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/impl/primitive_list_notifier.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/impl/realm_coordinator.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/impl/results_notifier.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/impl/transact_log_handler.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/impl/weak_realm_notifier.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/util/uuid.o
  CXX(target) Release/obj.target/object-store/src/object-store/src/impl/epoll/external_commit_helper.o
  AR(target) Release/obj.target/object-store.a
  COPY Release/object-store.a
  CXX(target) Release/obj.target/realm/src/js_realm.o
In file included from ../src/js_realm.cpp:21:0:
../src/js_types.hpp: In constructor ‘realm::js::TypeErrorException::TypeErrorException(NativeAccessor&, realm::StringData, const realm::Property&, ValueType)’:
../src/js_types.hpp:91:51: error: expected unqualified-id before ‘typeof’
                                          accessor.typeof(value),
                                                   ^
../src/js_types.hpp: At global scope:
../src/js_types.hpp:110:24: error: expected unqualified-id before ‘typeof’
     static const char *typeof(ContextType, const ValueType &);
                        ^
../src/js_types.hpp:110:23: error: expected ‘;’ at end of member declaration
     static const char *typeof(ContextType, const ValueType &);
                       ^
../src/js_types.hpp:110:42: error: expected primary-expression before ‘,’ token
     static const char *typeof(ContextType, const ValueType &);
                                          ^
../src/js_types.hpp:110:44: error: expected primary-expression before ‘const’
     static const char *typeof(ContextType, const ValueType &);
                                            ^
../src/js_types.hpp:110:44: error: expected ‘)’ before ‘const’
realm.target.mk:124: recipe for target 'Release/obj.target/realm/src/js_realm.o' failed
make: *** [Release/obj.target/realm/src/js_realm.o] Error 1
make: Leaving directory '/home/zb/Documents/MyFiles/Projects/trc/Rocket.Chat.ReactNative/node_modules/realm/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/npm/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:235:12)
gyp ERR! System Linux 4.13.0-41-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/zb/Documents/MyFiles/Projects/trc/Rocket.Chat.ReactNative/node_modules/realm/compiled/node-v64_linux_x64/realm.node" "--module_name=realm" "--module_path=/home/zb/Documents/MyFiles/Projects/trc/Rocket.Chat.ReactNative/node_modules/realm/compiled/node-v64_linux_x64"
gyp ERR! cwd /home/zb/Documents/MyFiles/Projects/trc/Rocket.Chat.ReactNative/node_modules/realm
gyp ERR! node -v v10.1.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/zb/Documents/MyFiles/Projects/trc/Rocket.Chat.ReactNative/node_modules/realm/compiled/node-v64_linux_x64/realm.node --module_name=realm --module_path=/home/zb/Documents/MyFiles/Projects/trc/Rocket.Chat.ReactNative/node_modules/realm/compiled/node-v64_linux_x64' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/home/zb/Documents/MyFiles/Projects/trc/Rocket.Chat.ReactNative/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:957:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:246:5)
node-pre-gyp ERR! System Linux 4.13.0-41-generic
node-pre-gyp ERR! command "/usr/bin/node" "/home/zb/Documents/MyFiles/Projects/trc/Rocket.Chat.ReactNative/node_modules/realm/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/zb/Documents/MyFiles/Projects/trc/Rocket.Chat.ReactNative/node_modules/realm
node-pre-gyp ERR! node -v v10.1.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok 
Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/zb/Documents/MyFiles/Projects/trc/Rocket.Chat.ReactNative/node_modules/realm/compiled/node-v64_linux_x64/realm.node --module_name=realm --module_path=/home/zb/Documents/MyFiles/Projects/trc/Rocket.Chat.ReactNative/node_modules/realm/compiled/node-v64_linux_x64' (1)
npm WARN react-native-keyboard-input@5.2.2 requires a peer of react@~16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-native-keyboard-input@5.2.2 requires a peer of react-native@^0.51.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! realm@2.3.4 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the realm@2.3.4 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/zb/.npm/_logs/2018-05-16T18_08_45_937Z-debug.log

The app isn't connecting to your server? Make sure your server supports WebSocket. These are the minimum requirements for Apache 2.4 and Nginx 1.3 or greater.

diegolmello commented 6 years ago

@mnlbox Have you tried removing node_modules folder and run npm i again?

mnlbox commented 6 years ago

@diegolmello yes and I also tried use yarn but it's not working

mnlbox commented 6 years ago

@diegolmello , @ggazzo Any suggestion?? I can't run this app from source. :disappointed:

mnlbox commented 6 years ago

It's my yarn output:

yarn install v1.6.0
(node:11850) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
info No lockfile found.
[1/5] Validating package.json...
[2/5] Resolving packages...
warning snyk > proxy-agent > socks-proxy-agent > socks@1.1.10: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0
warning babel-preset-es2015@6.24.1: 🙌  Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update! 
warning react-native-bundle-visualizer > haul > react-stream-renderer@0.2.0: Please use react-slate
[3/5] Fetching packages...
info fsevents@1.2.4: The platform "linux" is incompatible with this module.
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
warning " > @storybook/react-native@3.4.5" has unmet peer dependency "babel-core@^6.26.0 || ^7.0.0-0".
warning " > @storybook/react-native@3.4.5" has unmet peer dependency "babel-runtime@>=6.0.0".
warning "@storybook/react-native > babel-loader@7.1.4" has unmet peer dependency "babel-core@6".
warning " > react-native@0.55.4" has incorrect peer dependency "react@16.3.1".
warning " > react-native-keyboard-input@5.2.3" has incorrect peer dependency "react@~16.0.0".
warning " > react-native-keyboard-input@5.2.3" has incorrect peer dependency "react-native@^0.51.0".
warning " > react-native-meteor@1.2.0" has incorrect peer dependency "react-native@^0.46.0".
warning "react-native-meteor > react-komposer@1.13.1" has incorrect peer dependency "react@^0.14.3 || ^15.0.0".
warning " > react-native-responsive-ui@1.1.1" has incorrect peer dependency "react@16.0.0-alpha.6".
warning " > react-native-responsive-ui@1.1.1" has incorrect peer dependency "react-native@^0.43.4".
warning " > @storybook/addon-storyshots@3.4.5" has unmet peer dependency "babel-core@^6.26.0 || ^7.0.0-0".
warning " > babel-jest@22.4.4" has unmet peer dependency "babel-core@^6.0.0 || ^7.0.0-0".
[5/5] Building fresh packages...
[-/4] ⠄ waiting...
[2/4] ⠄ realm:     at Zlib.zlibOnError [as onerror] (zlib.js:153:17) er
[3/4] ⠄ puppeteer
[-/4] ⠄ waiting...
error /home/zb/Desktop/rcrn/Rocket.Chat.ReactNative/node_modules/realm: Command failed.
Exit code: 1
Command: node-pre-gyp install --fallback-to-build
Arguments: 
Directory: /home/zb/Desktop/rcrn/Rocket.Chat.ReactNative/node_modules/realm
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@0.6.39
node-pre-gyp info using node@10.1.0 | linux | x64
node-pre-gyp info check checked for "/home/zb/Desktop/rcrn/Rocket.Chat.ReactNative/node_modules/realm/compiled/node-v64_linux_x64/realm.node" (not found)
node-pre-gyp http GET https://static.realm.io/node-pre-gyp/2.6.0/realm-v2.6.0-node-v64-linux-x64.tar.gz
node-pre-gyp http 404 https://static.realm.io/node-pre-gyp/2.6.0/realm-v2.6.0-node-v64-linux-x64.tar.gz
node-pre-gyp ERR! Tried to download(404): https://static.realm.io/node-pre-gyp/2.6.0/realm-v2.6.0-node-v64-linux-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for realm@2.6.0 and node@10.1.0 (node-v64 ABI, glibc) (falling back to source compile with node-gyp) 
node-pre-gyp http 404 status code downloading tarball https://static.realm.io/node-pre-gyp/2.6.0/realm-v2.6.0-node-v64-linux-x64.tar.gz 
gyp info it worked if it ends with ok
gyp info using node-gyp@3.6.2
gyp info using node@10.1.0 | linux | x64
gyp info ok 
gyp info it worked if it ends with ok
gyp info using node-gyp@3.6.2
gyp info using node@10.1.0 | linux | x64
gyp info spawn /usr/bin/python2
gyp info spawn args [ '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/home/zb/Desktop/rcrn/Rocket.Chat.ReactNative/node_modules/realm/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/zb/.node-gyp/10.1.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/home/zb/.node-gyp/10.1.0',
gyp info spawn args   '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/home/zb/.node-gyp/10.1.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/home/zb/Desktop/rcrn/Rocket.Chat.ReactNative/node_modules/realm',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info ok 
gyp info it worked if it ends with ok
gyp info using node-gyp@3.6.2
gyp info using node@10.1.0 | linux | x64
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory '/home/zb/Desktop/rcrn/Rocket.Chat.ReactNative/node_modules/realm/build'
  TOUCH Release/obj.target/OpenSSL.stamp
  ACTION binding_gyp_vendored_realm_target_download_realm /home/zb/Desktop/rcrn/Rocket.Chat.ReactNative/node_modules/realm/vendor/realm-linux-x64
(node:12093) ExperimentalWarning: The fs.promises API is experimental
Resolved requirements: { CORE_SERVER_FOLDER: 'core',
  CORE_ARCHIVE: 'realm-core-5.6.0.tgz',
  CORE_ARCHIVE_ROOT: 'realm-core-5.6.0' }
No lockfile found at the target, proceeding.
Download url: https://static.realm.io/downloads/core/realm-core-5.6.0.tgz
Extracting realm-core-5.6.0.tgz => /home/zb/Desktop/rcrn/Rocket.Chat.ReactNative/node_modules/realm/vendor/realm-linux-x64
{ Error: unexpected end of file
    at Zlib.zlibOnError [as onerror] (zlib.js:153:17) errno: -5, code: 'Z_BUF_ERROR' }
vendored-realm.target.mk:13: recipe for target '/home/zb/Desktop/rcrn/Rocket.Chat.ReactNative/node_modules/realm/vendor/realm-linux-x64' failed
make: Leaving directory '/home/zb/Desktop/rcrn/Rocket.Chat.ReactNative/node_modules/realm/build'
make: *** [/home/zb/Desktop/rcrn/Rocket.Chat.ReactNative/node_modules/realm/vendor/realm-linux-x64] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/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:235:12)
gyp ERR! System Linux 4.13.0-43-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/zb/Desktop/rcrn/Rocket.Chat.ReactNative/node_modules/realm/compiled/node-v64_linux_x64/realm.node" "--module_name=realm" "--module_path=/home/zb/Desktop/rcrn/Rocket.Chat.ReactNative/node_modules/realm/compiled/node-v64_linux_x64"
gyp ERR! cwd /home/zb/Desktop/rcrn/Rocket.Chat.ReactNative/node_modules/realm
gyp ERR! node -v v10.1.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/zb/Desktop/rcrn/Rocket.Chat.ReactNative/node_modules/realm/compiled/node-v64_linux_x64/realm.node --module_name=realm --module_path=/home/zb/Desktop/rcrn/Rocket.Chat.ReactNative/node_modules/realm/compiled/node-v64_linux_x64' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/home/zb/Desktop/rcrn/Rocket.Chat.ReactNative/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:957:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:246:5)
node-pre-gyp ERR! System Linux 4.13.0-43-generic
node-pre-gyp ERR! command "/usr/bin/node" "/home/zb/Desktop/rcrn/Rocket.Chat.ReactNative/node_modules/realm/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/zb/Desktop/rcrn/Rocket.Chat.ReactNative/node_modules/realm
node-pre-gyp ERR! node -v v10.1.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok 
Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/zb/Desktop/rcrn/Rocket.Chat.ReactNative/node_modules/realm/compiled/node-v
mnlbox commented 6 years ago

@ggazzo I'm using node version 10.1.0. Is it related? :thinking:

ggazzo commented 6 years ago

@mnlbox maybe something related https://github.com/realm/realm-js/issues/1813 ?

try install nvm and use v8.9.0

mnlbox commented 6 years ago

@ggazzo I'm switch to node v 9.0.0 and it's working. Thanks man :wink:

mnlbox commented 6 years ago

Now I have new error :disappointed:

308

dachnikrus commented 6 years ago

Hello here. I tried the same, downgraded to Node v9 But I have an error detox@7.3.5 postinstall: scripts/postinstall.sh What can be wrong?

diegolmello commented 6 years ago

@dachnikrus It seems to be an error on detox's postinstall, but post your entire error here and we'll try to help you.

dachnikrus commented 6 years ago

@diegolmello Hi! I just resolved it with npm i detox, so it pushed me further, but I faced another issue with :react-native-push-notification

so, my current error log is like this

$ npm run android

> rocket-chat-reactnative@0.0.1 android D:\RCnew\chat\Rocket.Chat.ReactNative
> react-native run-android

Scanning folders for symlinks in D:\RCnew\chat\Rocket.Chat.ReactNative\node_modules (73ms)
JS server already running.
Building and installing the app on the device (cd android && gradlew.bat installDebug)...
Incremental java compilation is an incubating feature.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApk'.
   > A problem occurred configuring project ':react-native-push-notification'.
      > Could not find common.jar (android.arch.core:common:1.0.0).
        Searched in the following locations:
            https://jcenter.bintray.com/android/arch/core/common/1.0.0/common-1.0.0.jar

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 11.05 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html
diegolmello commented 6 years ago

@dachnikrus Try this: https://github.com/facebook/react-native/issues/19485#issuecomment-396159044

MLY123 commented 5 years ago

这个评论的可能 结果我都试了,结果还是报错。 localhost:Rocket.Chat.ReactNative XY$ npm install npm WARN deprecated otp.js@1.2.0: This version is deprecated and the library moved to @akanass/rx-otp npm WARN deprecated joi@7.3.0: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). npm WARN deprecated @types/eventemitter3@2.0.2: This is a stub types definition for EventEmitter3 (https://github.com/primus/eventemitter3). EventEmitter3 provides its own type definitions, so you don't need @types/eventemitter3 installed! npm WARN deprecated core-js@1.2.7: core-js@<2.6.8 is no longer maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2. npm WARN deprecated kleur@2.0.2: Please upgrade to kleur@3 or migrate to 'ansi-colors' if you prefer the old syntax. Visit https://github.com/lukeed/kleur/releases/tag/v3.0.0\ for migration path(s). npm WARN deprecated hoek@3.0.4: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). npm WARN deprecated topo@2.0.2: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). npm WARN deprecated hoek@4.2.1: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).

dtrace-provider@0.8.8 install /Users/XY/Desktop/公司/Rocket.Chat.ReactNative/node_modules/dtrace-provider node-gyp rebuild || node suppress-error.js

ACTION binding_gyp_ndtp_target_build_ndtp .

Building dtrace-provider failed with exit code 1, falling back on stub implementation.

Re-run install with V set in your environment to see the build output, or NODE_DTRACE_PROVIDER_REQUIRE=hard to force an installation failure.

TOUCH Release/obj.target/ndtp.stamp

fsevents@1.2.9 install /Users/XY/Desktop/公司/Rocket.Chat.ReactNative/node_modules/fsevents node install

node-pre-gyp WARN Using request for node-pre-gyp https download [fsevents] Success: "/Users/XY/Desktop/公司/Rocket.Chat.ReactNative/node_modules/fsevents/lib/binding/Release/node-v59-darwin-x64/fse.node" is installed via remote

msgpack@1.0.2 install /Users/XY/Desktop/公司/Rocket.Chat.ReactNative/node_modules/msgpack node-gyp rebuild

CC(target) Release/obj.target/libmsgpack/deps/msgpack/objectc.o CC(target) Release/obj.target/libmsgpack/deps/msgpack/unpack.o CC(target) Release/obj.target/libmsgpack/deps/msgpack/vrefbuffer.o CC(target) Release/obj.target/libmsgpack/deps/msgpack/zone.o CC(target) Release/obj.target/libmsgpack/deps/msgpack/version.o LIBTOOL-STATIC Release/msgpack.a CXX(target) Release/obj.target/msgpackBinding/src/msgpack.o SOLINK_MODULE(target) Release/msgpackBinding.node

husky@3.0.2 install /Users/XY/Desktop/公司/Rocket.Chat.ReactNative/node_modules/husky node husky install

husky > Setting up git hooks husky > Done

realm@2.29.2 install /Users/XY/Desktop/公司/Rocket.Chat.ReactNative/node_modules/realm node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Using request for node-pre-gyp https download node-pre-gyp WARN Tried to download(404): https://static.realm.io/node-pre-gyp/2.29.2/realm-v2.29.2-node-v59-darwin-x64.tar.gz node-pre-gyp WARN Pre-built binaries not found for realm@2.29.2 and node@9.8.0 (node-v59 ABI, unknown) (falling back to source compile with node-gyp) TOUCH Release/obj.target/OpenSSL.stamp ACTION binding_gyp_vendored_realm_target_download_realm /Users/XY/Desktop/公司/Rocket.Chat.ReactNative/node_modules/realm/vendor/realm-mac-x64 Resolved requirements: { SYNC_SERVER_FOLDER: 'sync', SYNC_ARCHIVE: 'realm-sync-node-cocoa-4.7.3.tar.gz', SYNC_ARCHIVE_ROOT: 'realm-sync-node-cocoa-4.7.3' } No lockfile found at the target, proceeding. Download url: https://static.realm.io/downloads/sync/realm-sync-node-cocoa-4.7.3.tar.gz Downloading realm-sync-node-cocoa-4.7.3.tar.gz [==================================================================================================================================] (642k) Extracting realm-sync-node-cocoa-4.7.3.tar.gz => /Users/XY/Desktop/公司/Rocket.Chat.ReactNative/node_modules/realm/vendor/realm-mac-x64 Success TOUCH Release/obj.target/vendored-realm.stamp TOUCH Release/obj.target/realm-core.stamp TOUCH Release/obj.target/realm-sync.stamp CXX(target) Release/obj.target/object-store/src/object-store/src/binding_callback_thread_observer.o CXX(target) Release/obj.target/object-store/src/object-store/src/collection_notifications.o CXX(target) Release/obj.target/object-store/src/object-store/src/index_set.o CXX(target) Release/obj.target/object-store/src/object-store/src/list.o CXX(target) Release/obj.target/object-store/src/object-store/src/object.o CXX(target) Release/obj.target/object-store/src/object-store/src/object_schema.o CXX(target) Release/obj.target/object-store/src/object-store/src/object_store.o CXX(target) Release/obj.target/object-store/src/object-store/src/placeholder.o CXX(target) Release/obj.target/object-store/src/object-store/src/results.o CXX(target) Release/obj.target/object-store/src/object-store/src/schema.o CXX(target) Release/obj.target/object-store/src/object-store/src/shared_realm.o CXX(target) Release/obj.target/object-store/src/object-store/src/thread_safe_reference.o CXX(target) Release/obj.target/object-store/src/object-store/src/impl/collection_change_builder.o CXX(target) Release/obj.target/object-store/src/object-store/src/impl/collection_notifier.o CXX(target) Release/obj.target/object-store/src/object-store/src/impl/list_notifier.o CXX(target) Release/obj.target/object-store/src/object-store/src/impl/object_notifier.o CXX(target) Release/obj.target/object-store/src/object-store/src/impl/primitive_list_notifier.o CXX(target) Release/obj.target/object-store/src/object-store/src/impl/realm_coordinator.o CXX(target) Release/obj.target/object-store/src/object-store/src/impl/results_notifier.o CXX(target) Release/obj.target/object-store/src/object-store/src/impl/transact_log_handler.o CXX(target) Release/obj.target/object-store/src/object-store/src/impl/weak_realm_notifier.o CXX(target) Release/obj.target/object-store/src/object-store/src/util/uuid.o CXX(target) Release/obj.target/object-store/src/object-store/src/impl/apple/external_commit_helper.o CXX(target) Release/obj.target/object-store/src/object-store/src/impl/apple/keychain_helper.o CXX(target) Release/obj.target/object-store/src/object-store/src/sync/impl/apple/network_reachability_observer.o CXX(target) Release/obj.target/object-store/src/object-store/src/sync/impl/apple/system_configuration.o CXX(target) Release/obj.target/object-store/src/object-store/src/util/fifo.o CXX(target) Release/obj.target/object-store/src/object-store/src/server/adapter.o CXX(target) Release/obj.target/object-store/src/object-store/src/server/admin_realm.o CXX(target) Release/obj.target/object-store/src/object-store/src/server/global_notifier.o CXX(target) Release/obj.target/object-store/src/object-store/src/sync/impl/sync_file.o CXX(target) Release/obj.target/object-store/src/object-store/src/sync/impl/sync_metadata.o CXX(target) Release/obj.target/object-store/src/object-store/src/sync/impl/work_queue.o CXX(target) Release/obj.target/object-store/src/object-store/src/sync/partial_sync.o CXX(target) Release/obj.target/object-store/src/object-store/src/sync/async_open_task.o CXX(target) Release/obj.target/object-store/src/object-store/src/sync/sync_config.o CXX(target) Release/obj.target/object-store/src/object-store/src/sync/sync_manager.o CXX(target) Release/obj.target/object-store/src/object-store/src/sync/sync_session.o ../src/object-store/src/sync/sync_session.cpp:567:17: warning: enumeration value 'http_tunnel_failed' not handled in switch [-Wswitch] switch (static_cast(error_code.value())) { ^ ../src/object-store/src/sync/sync_session.cpp:567:17: note: add missing switch cases switch (static_cast(error_code.value())) { ^ 1 warning generated. CXX(target) Release/obj.target/object-store/src/object-store/src/sync/sync_user.o LIBTOOL-STATIC Release/object-store.a CXX(target) Release/obj.target/realm/src/js_realm.o CXX(target) Release/obj.target/realm/src/node/node_init.o CXX(target) Release/obj.target/realm/src/node/platform.o CXX(target) Release/obj.target/realm/src/node/sync_logger.o SOLINK_MODULE(target) Release/realm.node ld: warning: directory not found for option '-L/Users/XY/Desktop/公司/Rocket.Chat.ReactNative/node_modules/realm/vendor/realm-mac-x64/lib' ld: warning: directory not found for option '-L/Users/XY/Desktop/公司/Rocket.Chat.ReactNative/node_modules/realm/vendor/realm-mac-x64/lib64' COPY /Users/XY/Desktop/公司/Rocket.Chat.ReactNative/node_modules/realm/compiled/node-v59_darwin_x64/realm.node TOUCH Release/obj.target/action_after_build.stamp TOUCH Release/obj.target/scripts.stamp

core-js@3.2.1 postinstall /Users/XY/Desktop/公司/Rocket.Chat.ReactNative/node_modules/@babel/register/node_modules/core-js node scripts/postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

https://opencollective.com/core-js https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

core-js@3.2.1 postinstall /Users/XY/Desktop/公司/Rocket.Chat.ReactNative/node_modules/@storybook/addon-actions/node_modules/core-js node scripts/postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

https://opencollective.com/core-js https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

core-js@3.2.1 postinstall /Users/XY/Desktop/公司/Rocket.Chat.ReactNative/node_modules/@storybook/addon-links/node_modules/core-js node scripts/postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

https://opencollective.com/core-js https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

core-js@3.2.1 postinstall /Users/XY/Desktop/公司/Rocket.Chat.ReactNative/node_modules/@storybook/addon-storyshots/node_modules/core-js node scripts/postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

https://opencollective.com/core-js https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

core-js@3.2.1 postinstall /Users/XY/Desktop/公司/Rocket.Chat.ReactNative/node_modules/@storybook/addons/node_modules/core-js node scripts/postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

https://opencollective.com/core-js https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

(node:59315) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 SIGINT listeners added. Use emitter.setMaxListeners() to increase limit

core-js@3.2.1 postinstall /Users/XY/Desktop/公司/Rocket.Chat.ReactNative/node_modules/@storybook/api/node_modules/core-js node scripts/postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

https://opencollective.com/core-js https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

core-js@3.2.1 postinstall /Users/XY/Desktop/公司/Rocket.Chat.ReactNative/node_modules/@storybook/channel-websocket/node_modules/core-js node scripts/postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

https://opencollective.com/core-js https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

core-js@3.2.1 postinstall /Users/XY/Desktop/公司/Rocket.Chat.ReactNative/node_modules/@storybook/channels/node_modules/core-js node scripts/postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

https://opencollective.com/core-js https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

core-js@3.2.1 postinstall /Users/XY/Desktop/公司/Rocket.Chat.ReactNative/node_modules/@storybook/client-api/node_modules/core-js node scripts/postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

https://opencollective.com/core-js https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

core-js@3.2.1 postinstall /Users/XY/Desktop/公司/Rocket.Chat.ReactNative/node_modules/@storybook/client-logger/node_modules/core-js node scripts/postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

https://opencollective.com/core-js https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

core-js@3.2.1 postinstall /Users/XY/Desktop/公司/Rocket.Chat.ReactNative/node_modules/@storybook/components/node_modules/core-js node scripts/postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

https://opencollective.com/core-js https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

core-js@3.2.1 postinstall /Users/XY/Desktop/公司/Rocket.Chat.ReactNative/node_modules/@storybook/core-events/node_modules/core-js node scripts/postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

https://opencollective.com/core-js https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

core-js@3.2.1 postinstall /Users/XY/Desktop/公司/Rocket.Chat.ReactNative/node_modules/@storybook/react-native/node_modules/core-js node scripts/postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

https://opencollective.com/core-js https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

core-js@3.2.1 postinstall /Users/XY/Desktop/公司/Rocket.Chat.ReactNative/node_modules/@storybook/router/node_modules/core-js node scripts/postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

https://opencollective.com/core-js https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

core-js@3.2.1 postinstall /Users/XY/Desktop/公司/Rocket.Chat.ReactNative/node_modules/@storybook/theming/node_modules/core-js node scripts/postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

https://opencollective.com/core-js https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

core-js@2.6.9 postinstall /Users/XY/Desktop/公司/Rocket.Chat.ReactNative/node_modules/core-js node scripts/postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

https://opencollective.com/core-js https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

protobufjs@6.8.8 postinstall /Users/XY/Desktop/公司/Rocket.Chat.ReactNative/node_modules/protobufjs node scripts/postinstall

core-js@3.2.1 postinstall /Users/XY/Desktop/公司/Rocket.Chat.ReactNative/node_modules/simplebar/node_modules/core-js node scripts/postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

https://opencollective.com/core-js https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

detox@12.11.3 postinstall /Users/XY/Desktop/公司/Rocket.Chat.ReactNative/node_modules/detox node scripts/postinstall.js

Error: Command failed: /Users/XY/Desktop/公司/Rocket.Chat.ReactNative/node_modules/detox/scripts/build_framework.ios.sh at checkExecSyncError (child_process.js:575:11) at Object.execFileSync (child_process.js:593:13) at Object. (/Users/XY/Desktop/公司/Rocket.Chat.ReactNative/node_modules/detox/scripts/postinstall.js:2:27) at Module._compile (module.js:649:30) at Object.Module._extensions..js (module.js:660:10) at Module.load (module.js:561:32) at tryModuleLoad (module.js:501:12) at Function.Module._load (module.js:493:3) at Function.Module.runMain (module.js:690:10) at startup (bootstrap_node.js:194:16) npm WARN react-native-keyboard-input@5.3.1 requires a peer of react-native@^0.57.3 but none is installed. You must install peer dependencies yourself. npm WARN react-native-markdown-renderer@3.2.8 requires a peer of react-native@^0.50.4 but none is installed. You must install peer dependencies yourself. npm WARN react-native-realm-path@1.2.11 requires a peer of react-native@^0.41.2 but none is installed. You must install peer dependencies yourself. npm WARN react-native-responsive-ui@1.1.1 requires a peer of react@16.0.0-alpha.6 but none is installed. You must install peer dependencies yourself. npm WARN react-native-responsive-ui@1.1.1 requires a peer of react-native@^0.43.4 but none is installed. You must install peer dependencies yourself. npm WARN react-native-video-controls@2.2.3 requires a peer of react-native-video@^2.0.0 but none is installed. You must install peer dependencies yourself. npm WARN react-native-webview@6.8.0 requires a peer of react-native@>=0.57 <0.60 but none is installed. You must install peer dependencies yourself. npm WARN eslint-config-airbnb@17.1.1 requires a peer of eslint@^4.19.1 || ^5.3.0 but none is installed. You must install peer dependencies yourself. npm WARN eslint-plugin-react-native@3.7.0 requires a peer of eslint@^3.17.0 || ^4 || ^5 but none is installed. You must install peer dependencies yourself. npm WARN eslint-config-airbnb-base@13.2.0 requires a peer of eslint@^4.19.1 || ^5.3.0 but none is installed. You must install peer dependencies yourself.

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! detox@12.11.3 postinstall: node scripts/postinstall.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the detox@12.11.3 postinstall 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! /Users/XY/.npm/_logs/2019-08-24T01_51_19_259Z-debug.log localhost:Rocket.Chat.ReactNative XY$ npm i detox

dtrace-provider@0.8.8 install /Users/XY/Desktop/公司/Rocket.Chat.ReactNative/node_modules/dtrace-provider node-gyp rebuild || node suppress-error.js

ACTION binding_gyp_ndtp_target_build_ndtp .

Building dtrace-provider failed with exit code 1, falling back on stub implementation.

Re-run install with V set in your environment to see the build output, or NODE_DTRACE_PROVIDER_REQUIRE=hard to force an installation failure.

TOUCH Release/obj.target/ndtp.stamp

detox@12.11.3 postinstall /Users/XY/Desktop/公司/Rocket.Chat.ReactNative/node_modules/detox node scripts/postinstall.js