Skip to content

Instantly share code, notes, and snippets.

@AymarN
Created October 8, 2019 08:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AymarN/9825c27bacb11951795a80e786e24f4f to your computer and use it in GitHub Desktop.
Save AymarN/9825c27bacb11951795a80e786e24f4f to your computer and use it in GitHub Desktop.
npm install
:~ $ npm prefix -g
/usr/local
:~ $ npm install -g
npm ERR! code ENOLOCAL
npm ERR! Could not install from "" as it does not contain a package.json file.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/Aymar/.npm/_logs/2019-10-08T08_12_54_372Z-debug.log
:~ $ npm install -g n
/usr/local/bin/n -> /usr/local/lib/node_modules/n/bin/n
+ n@6.0.1
updated 1 package in 0.276s
:~ $ appium
-sh: appium: command not found
:~ $ node -v
v10.16.3
:~ $ npm -v
6.9.0
:~ $ sudo npm uninstall -g appium --unsafe-perm=true --allow-root
Password:
up to date in 0.032s
:~ $ sudo npm install -g appium@latest --unsafe-perm=true --allow-root
/usr/local/bin/appium -> /usr/local/lib/node_modules/appium/build/lib/main.js
/usr/local/bin/authorize-ios -> /usr/local/lib/node_modules/appium/node_modules/.bin/authorize-ios
> appium-windows-driver@1.6.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
> core-js@2.6.9 postinstall /usr/local/lib/node_modules/appium/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 -)
> appium-chromedriver@4.16.0 postinstall /usr/local/lib/node_modules/appium/node_modules/appium-chromedriver
> node install-npm.js
[10:20:17] [Chromedriver Install] Installing Chromedriver version '76.0.3809.126' for platform 'mac' and architecture '64'
[10:20:17] [Chromedriver Install] Opening temp file to write 'chromedriver_mac64' to...
[10:20:17] [Chromedriver Install] Opened temp file '/tmp/201998-1368-h5jbeg.hmhd/chromedriver_mac64.zip'
[10:20:17] [Chromedriver Install] Downloading https://chromedriver.storage.googleapis.com/76.0.3809.126/chromedriver_mac64.zip...
[10:20:18] [Chromedriver Install] Writing binary content to /tmp/201998-1368-h5jbeg.hmhd/chromedriver_mac64.zip...
[10:20:18] [Chromedriver Install] Extracting /tmp/201998-1368-h5jbeg.hmhd/chromedriver_mac64.zip to /tmp/201998-1368-h5jbeg.hmhd/chromedriver_mac64
[10:20:18] [Chromedriver Install] Creating /usr/local/lib/node_modules/appium/node_modules/appium-chromedriver/chromedriver/mac...
[10:20:18] [Chromedriver Install] Copying unzipped binary, reading from /tmp/201998-1368-h5jbeg.hmhd/chromedriver_mac64/chromedriver...
[10:20:18] [Chromedriver Install] Writing to /usr/local/lib/node_modules/appium/node_modules/appium-chromedriver/chromedriver/mac/chromedriver...
[10:20:18] [Chromedriver Install] /usr/local/lib/node_modules/appium/node_modules/appium-chromedriver/chromedriver/mac/chromedriver successfully put in place
+ appium@1.15.0
added 610 packages from 457 contributors in 8.931s
:~ $ which appium
/usr/local/bin/appium
:~ $ appium -v
1.15.0
:~ $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment