Can't install latest appium beta

My appium version is 1.4.13.
I want to upgrade to 1.6 because it supports iOS 10.
When I run npm install -g appium@beta, this output is generated:

Last login: Thu Nov 10 09:29:08 on ttys001
gabo:~ gabo$ appium -v version
1.4.13
gabo:~ gabo$ npm install -g appium@beta
npm WARN engine [email protected]: wanted: {“node”:“>=4”,“npm”:“>=3”} (current: {“node”:“4.2.1”,“npm”:“2.14.7”})
npm WARN deprecated [email protected]: Babel 5 is no longer being maintained. Upgrade to Babel 6.
npm WARN engine [email protected]: wanted: {“node”:“>=6”} (current: {“node”:“4.2.1”,“npm”:“2.14.7”})

[email protected] install /Users/gabo/.node/lib/node_modules/appium/node_modules/fsevents
node-pre-gyp install --fallback-to-build

[fsevents] Success: “/Users/gabo/.node/lib/node_modules/appium/node_modules/fsevents/lib/binding/Release/node-v46-darwin-x64/fse.node” already installed
Pass --update-binary to reinstall or --build-from-source to recompile
npm WARN deprecated [email protected]: Copy its ~20 LOC directly into your code instead.
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN peerDependencies The peer dependency request@^2.34 included from request-promise will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency request@^2.34 included from request-promise-core will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.

[email protected] install /Users/gabo/.node/lib/node_modules/appium/node_modules/appium-windows-driver
node install-npm.js

Not installing WinAppDriver since did not detect a Windows system

[email protected] install /Users/gabo/.node/lib/node_modules/appium/node_modules/appium-uiautomator2-driver
node ./bin/install.js

Error: Cannot find module ‘yargs’
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object. (/Users/gabo/.node/lib/node_modules/appium/node_modules/appium-android-driver/build/index.js:15:14)
at Module._compile (module.js:435:26)
at Object.Module._extensions…js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)

[email protected] install /Users/gabo/.node/lib/node_modules/appium/node_modules/appium-selendroid-driver
node ./bin/install.js

Error: Cannot find module ‘yargs’
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object. (/Users/gabo/.node/lib/node_modules/appium/node_modules/appium-android-driver/build/index.js:15:14)
at Module._compile (module.js:435:26)
at Object.Module._extensions…js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)

[email protected] install /Users/gabo/.node/lib/node_modules/appium/node_modules/appium-youiengine-driver/node_modules/appium-android-driver/node_modules/appium-chromedriver
node install-npm.js

info Chromedriver Install Installing Chromedriver version ‘2.25’ for platform ‘mac’ and architecture ‘64’
info Chromedriver Install Opening temp file to write chromedriver_mac64 to…
info Chromedriver Install Downloading https://chromedriver.storage.googleapis.com/2.25/chromedriver_mac64.zip
info Chromedriver Install Writing binary content to /var/folders/z5/ytd_j37n0hl5vl6pdc7nxwzm0000gn/T/20161010-13309-1wad7g2/chromedriver_mac64.zip…
info Chromedriver Install Extracting /var/folders/z5/ytd_j37n0hl5vl6pdc7nxwzm0000gn/T/20161010-13309-1wad7g2/chromedriver_mac64.zip to /var/folders/z5/ytd_j37n0hl5vl6pdc7nxwzm0000gn/T/20161010-13309-1wad7g2/chromedriver_mac64
info Chromedriver Install Creating /Users/gabo/.node/lib/node_modules/appium/node_modules/appium-youiengine-driver/node_modules/appium-android-driver/node_modules/appium-chromedriver/chromedriver/mac…
info Chromedriver Install Copying unzipped binary, reading from /var/folders/z5/ytd_j37n0hl5vl6pdc7nxwzm0000gn/T/20161010-13309-1wad7g2/chromedriver_mac64/chromedriver…
info Chromedriver Install Writing to /Users/gabo/.node/lib/node_modules/appium/node_modules/appium-youiengine-driver/node_modules/appium-android-driver/node_modules/appium-chromedriver/chromedriver/mac/chromedriver…
info Chromedriver Install /Users/gabo/.node/lib/node_modules/appium/node_modules/appium-youiengine-driver/node_modules/appium-android-driver/node_modules/appium-chromedriver/chromedriver/mac/chromedriver successfully put in place

[email protected] install /Users/gabo/.node/lib/node_modules/appium/node_modules/appium-android-driver/node_modules/appium-chromedriver
node install-npm.js

info Chromedriver Install Installing Chromedriver version ‘2.25’ for platform ‘mac’ and architecture ‘64’
info Chromedriver Install Opening temp file to write chromedriver_mac64 to…
info Chromedriver Install Downloading https://chromedriver.storage.googleapis.com/2.25/chromedriver_mac64.zip
info Chromedriver Install Writing binary content to /var/folders/z5/ytd_j37n0hl5vl6pdc7nxwzm0000gn/T/20161010-13312-quu3o6/chromedriver_mac64.zip…
info Chromedriver Install Extracting /var/folders/z5/ytd_j37n0hl5vl6pdc7nxwzm0000gn/T/20161010-13312-quu3o6/chromedriver_mac64.zip to /var/folders/z5/ytd_j37n0hl5vl6pdc7nxwzm0000gn/T/20161010-13312-quu3o6/chromedriver_mac64
info Chromedriver Install Creating /Users/gabo/.node/lib/node_modules/appium/node_modules/appium-android-driver/node_modules/appium-chromedriver/chromedriver/mac…
info Chromedriver Install Copying unzipped binary, reading from /var/folders/z5/ytd_j37n0hl5vl6pdc7nxwzm0000gn/T/20161010-13312-quu3o6/chromedriver_mac64/chromedriver…
info Chromedriver Install Writing to /Users/gabo/.node/lib/node_modules/appium/node_modules/appium-android-driver/node_modules/appium-chromedriver/chromedriver/mac/chromedriver…
info Chromedriver Install /Users/gabo/.node/lib/node_modules/appium/node_modules/appium-android-driver/node_modules/appium-chromedriver/chromedriver/mac/chromedriver successfully put in place
npm ERR! Darwin 16.1.0
npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” “install” “-g” “appium@beta”
npm ERR! node v4.2.1
npm ERR! npm v2.14.7
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node ./bin/install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script ‘node ./bin/install.js’.
npm ERR! This is most likely a problem with the appium-uiautomator2-driver package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./bin/install.js
npm ERR! You can get their info via:
npm ERR! npm owner ls appium-uiautomator2-driver
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/gabo/npm-debug.log

Could please help.

Thanks
I am using 10.12.1 (16B2555)
npm-debug.log (1.3 MB)

@gabo You should the appiumm version for example :npm install [email protected]

Thanks but I got same output in Terminal after using command you suggested. See the attached log.
npm-debug.log (1.5 MB)

Can you try the same command again but this time uninstall the previous versions of appium

after running npm uninstall appium command, it return this output:
npm WARN uninstall not installed in /Users/gabo/node_modules: “appium”

Try this command : npm uninstall -g appium

got similar response:
npm WARN uninstall not installed in /Users/gabo/.node/lib/node_modules: “appium”

It seems that your URL is blocked are you trying to download it in your company??

I tried it from home and also from company but it fails in both way (see log below). I’m really desperate. I don’t understand why they didn’t build 1.6 appium dmg and put it somewhere so people can download it. I’m checking https://bitbucket.org/appium/appium.app/downloads/ every day as crazy man but no new version available. Could someone build it for me ? Thanks
npm-debug.log (1.7 MB)