Skip to content

Instantly share code, notes, and snippets.

@vikramvi
Created October 29, 2018 06:51
Show Gist options
  • Save vikramvi/a56f739aff1d45300469c70200a79803 to your computer and use it in GitHub Desktop.
Save vikramvi/a56f739aff1d45300469c70200a79803 to your computer and use it in GitHub Desktop.
appium installation erros
/usr/local/bin/appium -> /usr/local/lib/node_modules/appium/build/lib/main.js
> appium-chromedriver@4.5.0 install /usr/local/lib/node_modules/appium/node_modules/appium-chromedriver
> node install-npm.js
[07:48:18] [Chromedriver Install] Installing Chromedriver version '2.42' for platform 'mac' and architecture '64'
[07:48:18] [Chromedriver Install] Opening temp file to write 'chromedriver_mac64' to...
[07:48:18] [Chromedriver Install] Opened temp file '/var/folders/s5/s4vmm8jx3fqgt9s1tnn_0_v40000gn/T/2018929-8383-1butz7t.xohv/chromedriver_mac64.zip'
[07:48:18] [Chromedriver Install] Downloading https://chromedriver.storage.googleapis.com/2.42/chromedriver_mac64.zip...
[07:48:19] [Chromedriver Install] Writing binary content to /var/folders/s5/s4vmm8jx3fqgt9s1tnn_0_v40000gn/T/2018929-8383-1butz7t.xohv/chromedriver_mac64.zip...
[07:48:19] [Chromedriver Install] Extracting /var/folders/s5/s4vmm8jx3fqgt9s1tnn_0_v40000gn/T/2018929-8383-1butz7t.xohv/chromedriver_mac64.zip to /var/folders/s5/s4vmm8jx3fqgt9s1tnn_0_v40000gn/T/2018929-8383-1butz7t.xohv/chromedriver_mac64
[07:48:20] [Chromedriver Install] Creating /usr/local/lib/node_modules/appium/node_modules/appium-chromedriver/chromedriver/mac...
[07:48:20] [Chromedriver Install] Copying unzipped binary, reading from /var/folders/s5/s4vmm8jx3fqgt9s1tnn_0_v40000gn/T/2018929-8383-1butz7t.xohv/chromedriver_mac64/chromedriver...
[07:48:20] [Chromedriver Install] Writing to /usr/local/lib/node_modules/appium/node_modules/appium-chromedriver/chromedriver/mac/chromedriver...
[07:48:20] [Chromedriver Install] /usr/local/lib/node_modules/appium/node_modules/appium-chromedriver/chromedriver/mac/chromedriver successfully put in place
> appium-selendroid-driver@1.12.0 install /usr/local/lib/node_modules/appium/node_modules/appium-selendroid-driver
> node ./bin/install.js
[07:48:21] Java version 1.8.0_144 found
[07:48:21] Ensuring /usr/local/lib/node_modules/appium/node_modules/appium-selendroid-driver/selendroid/download exists
[07:48:21] Downloading Selendroid standalone server version 0.17.0 from http://repo1.maven.org/maven2/io/selendroid/selendroid-standalone/0.17.0/selendroid-standalone-0.17.0-with-dependencies.jar --> /usr/local/lib/node_modules/appium/node_modules/appium-selendroid-driver/selendroid/download/selendroid-server-7cf7163ac47f1c46eff95b62f78b58c1dabdec534acc6632da3784739f6e9d82.jar
[07:48:22] Writing binary content to /usr/local/lib/node_modules/appium/node_modules/appium-selendroid-driver/selendroid/download/selendroid-server.jar.tmp
[07:48:22] Selendroid standalone server downloaded
[07:48:22] Determining AndroidManifest location
[07:48:23] Determining server apk location
[07:48:23] Extracting manifest and apk to /usr/local/lib/node_modules/appium/node_modules/appium-selendroid-driver/selendroid/download
[07:48:23] Copying manifest and apk to /usr/local/lib/node_modules/appium/node_modules/appium-selendroid-driver/selendroid
[07:48:23] Cleaning up temp files
[07:48:23] Fixing AndroidManifest icon bug
> appium-windows-driver@1.4.0 install /usr/local/lib/node_modules/appium/node_modules/appium-windows-driver
> node install-npm.js
Not installing WinAppDriver since did not detect a Windows system
> fsevents@1.2.4 install /usr/local/lib/node_modules/appium/node_modules/fsevents
> node install
node-pre-gyp WARN Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.4/fse-v1.2.4-node-v67-darwin-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not found for fsevents@1.2.4 and node@11.0.0 (node-v67 ABI, unknown) (falling back to source compile with node-gyp)
SOLINK_MODULE(target) Release/.node
CXX(target) Release/obj.target/fse/fsevents.o
In file included from ../fsevents.cc:6:
In file included from ../../nan/nan.h:222:
In file included from ../../nan/nan_new.h:189:
../../nan/nan_implementation_12_inl.h:337:28: warning: 'New' is deprecated: Use Isolate* version [-Wdeprecated-declarations]
return v8::StringObject::New(value).As<v8::StringObject>();
^
/Users/vikramanna/.node-gyp/11.0.0/include/node/v8.h:5235:3: note: 'New' has been explicitly marked deprecated here
V8_DEPRECATED("Use Isolate* version",
^
/Users/vikramanna/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^
In file included from ../fsevents.cc:6:
../../nan/nan.h:1063:44: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
v8::Local<v8::String> string = from->ToString();
^
/Users/vikramanna/.node-gyp/11.0.0/include/node/v8.h:2548:10: note: 'ToString' has been explicitly marked deprecated here
inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
^
/Users/vikramanna/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^
In file included from ../fsevents.cc:6:
../../nan/nan.h:1073:27: warning: 'WriteUtf8' is deprecated: Use Isolate* version [-Wdeprecated-declarations]
length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
^
/Users/vikramanna/.node-gyp/11.0.0/include/node/v8.h:2753:3: note: 'WriteUtf8' has been explicitly marked deprecated here
V8_DEPRECATED("Use Isolate* version",
^
/Users/vikramanna/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^
../fsevents.cc:63:6: warning: field 'async_resource' will be initialized after field 'lockStarted' [-Wreorder]
: async_resource("fsevents:FSEvents"), lockStarted(false) {
^
4 warnings generated.
SOLINK_MODULE(target) Release/fse.node
COPY /usr/local/lib/node_modules/appium/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64/fse.node
TOUCH Release/obj.target/action_after_build.stamp
> heapdump@0.3.9 install /usr/local/lib/node_modules/appium/node_modules/heapdump
> node-gyp rebuild
CXX(target) Release/obj.target/addon/src/heapdump.o
In file included from ../src/heapdump.cc:17:
../src/compat-inl.h:300:19: error: no member named 'GetCpuProfiler' in 'v8::Isolate'
return isolate->GetCpuProfiler()->StartProfiling(title, record_samples);
~~~~~~~ ^
../src/compat-inl.h:310:19: error: no member named 'GetCpuProfiler' in 'v8::Isolate'
return isolate->GetCpuProfiler()->StopProfiling(title);
~~~~~~~ ^
../src/heapdump.cc:106:23: warning: 'Utf8Value' is deprecated: Use Isolate version [-Wdeprecated-declarations]
String::Utf8Value filename_string(args[0]);
^
/Users/vikramanna/.node-gyp/11.0.0/include/node/v8.h:2991:5: note: 'Utf8Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use Isolate version",
^
/Users/vikramanna/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^
../src/heapdump.cc:143:9: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), callback,
^
/Users/vikramanna/.node-gyp/11.0.0/include/node/node.h:170:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/vikramanna/.node-gyp/11.0.0/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
../src/heapdump.cc:157:44: warning: 'Int32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
PlatformInit(args.GetIsolate(), args[0]->Int32Value());
^
/Users/vikramanna/.node-gyp/11.0.0/include/node/v8.h:2572:3: note: 'Int32Value' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/Users/vikramanna/.node-gyp/11.0.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^
3 warnings and 2 errors generated.
make: *** [Release/obj.target/addon/src/heapdump.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Darwin 17.6.0
gyp ERR! command "/usr/local/Cellar/node/11.0.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/appium/node_modules/heapdump
gyp ERR! node -v v11.0.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: heapdump@0.3.9 (node_modules/appium/node_modules/heapdump):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: heapdump@0.3.9 install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
+ appium@1.9.1
added 591 packages from 434 contributors in 28.16s
@xiaochunmei
Copy link

Had exactly same issue today when doing "npm install -g appium", any one has any suggestions?

@contactabdulbasith
Copy link

Hello, I am also getting the same issue. I tried installing with sudo and changing node versions. Nothing has helped. Has anyone solved this issue? I am trying to install in MAC with OS 10.14 and installed Xcode 10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment