Unable to upgrade appium on Windows

I am trying to upgrade appium from version 1.4.16.1 to latest (1.5.2) on my Windows using ‘npm install -g appium’ command but it is failing with multiple errors.
Can someone please help.
Below are the errors that are displayed in the command prompt.
Thanks.

=========================================
C:\Windows\system32>npm install -g appium
npm WARN peerDependencies The peer dependency continuation-local-storage@~3 incl
uded from cls-bluebird will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerD
ependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it
explicitly.
npm WARN peerDependencies The peer dependency bluebird@>=1.0.3 included from cls
-bluebird will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerD
ependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it
explicitly.

[email protected] install C:\Users\loveleen.saini\AppData\Roaming\npm
node_modules\appium\node_modules\appium-android-driver\node_modules\appium-chrom
edriver
node install-npm.js

Error trying to install Chromedriver binary. Waiting and trying again. Cannot fi
nd module ‘core-js/library/fn/get-iterator’
Error trying to install Chromedriver binary. Waiting and trying again. Cannot fi
nd module ‘core-js/library/fn/get-iterator’
Error trying to install Chromedriver binary. Waiting and trying again. Cannot fi
nd module ‘core-js/library/fn/get-iterator’
Error trying to install Chromedriver binary. Waiting and trying again. Cannot fi
nd module ‘core-js/library/fn/get-iterator’
Error trying to install Chromedriver binary. Waiting and trying again. Cannot fi
nd module ‘core-js/library/fn/get-iterator’
Error trying to install Chromedriver binary. Waiting and trying again. Cannot fi
nd module ‘core-js/library/fn/get-iterator’
Error trying to install Chromedriver binary. Waiting and trying again. Cannot fi
nd module ‘core-js/library/fn/get-iterator’
Error trying to install Chromedriver binary. Waiting and trying again. Cannot fi
nd module ‘core-js/library/fn/get-iterator’
Error trying to install Chromedriver binary. Waiting and trying again. Cannot fi
nd module ‘core-js/library/fn/get-iterator’
Error trying to install Chromedriver binary. Waiting and trying again. Cannot fi
nd module ‘core-js/library/fn/get-iterator’
Error trying to install Chromedriver binary. Waiting and trying again. Cannot fi
nd module ‘core-js/library/fn/get-iterator’
Error trying to install Chromedriver binary. Waiting and trying again. Cannot fi
nd module ‘core-js/library/fn/get-iterator’
Error trying to install Chromedriver binary. Waiting and trying again. Cannot fi
nd module ‘core-js/library/fn/get-iterator’
Error trying to install Chromedriver binary. Waiting and trying again. Cannot fi
nd module ‘core-js/library/fn/get-iterator’
Error trying to install Chromedriver binary. Waiting and trying again. Cannot fi
nd module ‘core-js/library/fn/get-iterator’’
Error trying to install Chromedriver binary. Waiting and trying again. Cannot fi
nd module ‘core-js/library/fn/get-iterator’
Error trying to install Chromedriver binary. Waiting and trying again. Cannot fi
nd module ‘core-js/library/fn/get-iterator’
Error trying to install Chromedriver binary. Waiting and trying again. Cannot fi
nd module ‘core-js/library/fn/get-iterator’
Error trying to install Chromedriver binary. Waiting and trying again. Cannot fi
nd module ‘core-js/library/fn/get-iterator’
Error trying to install Chromedriver binary. Waiting and trying again. Cannot fi
nd module ‘core-js/library/fn/get-iterator’
Error trying to install Chromedriver binary. Waiting and trying again. Cannot fi
nd module ‘core-js/library/fn/get-iterator’
Error trying to install Chromedriver binary. Waiting and trying again. Cannot fi
nd module ‘core-js/library/fn/get-iterator’
Error trying to install Chromedriver binary. Waiting and trying again. Cannot fi
nd module ‘core-js/library/fn/get-iterator’
Error trying to install Chromedriver binary. Waiting and trying again. Cannot fi
nd module ‘core-js/library/fn/get-iterator’
Error trying to install Chromedriver binary. Waiting and trying again. Cannot fi
nd module ‘core-js/library/fn/get-iterator’
Error trying to install Chromedriver binary. Waiting and trying again. Cannot fi
nd module ‘core-js/library/fn/get-iterator’
Error trying to install Chromedriver binary. Waiting and trying again. Cannot fi
nd module ‘core-js/library/fn/get-iterator’
Error trying to install Chromedriver binary. Waiting and trying again. Cannot fi
nd module ‘…/modules/web.dom.iterable’
Error trying to install Chromedriver binary. Waiting and trying again. Cannot fi
nd module ‘…/modules/web.dom.iterable’
Error trying to install Chromedriver binary. Waiting and trying again. Cannot fi
nd module ‘…/modules/web.dom.iterable’
Error trying to install Chromedriver binary. Waiting and trying again. Cannot fi
nd module ‘…/modules/web.dom.iterable’
Error trying to install Chromedriver binary. Waiting and trying again. Cannot fi
nd module ‘…/modules/web.dom.iterable’
Error trying to install Chromedriver binary. Waiting and trying again. Cannot fi
nd module ‘…/modules/web.dom.iterable’
Error trying to install Chromedriver binary. Waiting and trying again. Cannot fi
nd module ‘…/modules/web.dom.iterable’
Error trying to install Chromedriver binary. Waiting and trying again. Cannot fi
nd module ‘…/modules/web.dom.iterable’
Error trying to install Chromedriver binary. Waiting and trying again. Cannot fi
nd module ‘…/modules/web.dom.iterable’
Error trying to install Chromedriver binary. Waiting and trying again. Cannot fi
nd module ‘…/modules/web.dom.iterable’
info Chromedriver Install Installing Chromedriver version ‘2.21’ for platform ‘w
in’ and architecture ‘32’
info Chromedriver Install Opening temp file to write chromedriver_win32 to…
ERR! Support Error: ENOENT: no such file or directory, open ‘C:\Users\LOVELE~1.S
AI\AppData\Local\Temp\2016412-2932-h847ga\chromedriver_win32.zip’
ERR! Support at Error (native)
ERR! Support { [Error: ENOENT: no such file or directory, open ‘C:\Users\LOVELE
~1.SAI\AppData\Local\Temp\2016412-2932-h847ga\chromedriver_win32.zip’]
ERR! Support cause:
ERR! Support { [Error: ENOENT: no such file or directory, open ‘C:\Users\LOVE
LE~1.SAI\AppData\Local\Temp\2016412-2932-h847ga\chromedriver_win32.zip’]
ERR! Support errno: -4058,
ERR! Support code: ‘ENOENT’,
ERR! Support syscall: ‘open’,
ERR! Support path: ‘C:\Users\LOVELE~1.SAI\AppData\Local\Temp\2016412-
2932-h847ga\chromedriver_win32.zip’ },
ERR! Support isOperational: true,
ERR! Support errno: -4058,
ERR! Support code: ‘ENOENT’,
ERR! Support syscall: ‘open’,
ERR! Support path: ‘C:\Users\LOVELE~1.SAI\AppData\Local\Temp\2016412-293
2-h847ga\chromedriver_win32.zip’ }
Error: ENOENT: no such file or directory, open ‘C:\Users\LOVELE~1.SAI\AppData\Lo
cal\Temp\2016412-2932-h847ga\chromedriver_win32.zip’
at Error (native)

[email protected] install C:\Users\loveleen.saini\AppData\Roaming
\npm\node_modules\appium\node_modules\appium-selendroid-driver
node ./bin/install.js

dbug AndroidDriver Getting Java version
info SelendroidInstaller Ensuring C:\Users\loveleen.saini\AppData\Roaming\npm\no
de_modules\appium\node_modules\appium-selendroid-driver\node_modules\appium-sele
ndroid-installer\selendroid\download exists
info AndroidDriver Java version is: 1.8.0_74
info SelendroidInstaller Downloading Selendroid standalone server version 0.17.0
from https://github.com/selendroid/selendroid/releases/download/0.17.0/selendro
id-standalone-0.17.0-with-dependencies.jar → C:\Users\loveleen.saini\AppData\R
oaming\npm\node_modules\appium\node_modules\appium-selendroid-driver\node_module
s\appium-selendroid-installer\selendroid\download\selendroid-server.jar
info SelendroidInstaller Writing binary content to C:\Users\loveleen.saini\AppDa
ta\Roaming\npm\node_modules\appium\node_modules\appium-selendroid-driver\node_mo
dules\appium-selendroid-installer\selendroid\download\selendroid-server.jar
info SelendroidInstaller Selendroid standalone server downloaded
info SelendroidInstaller Determining AndroidManifest location
Error: Command ‘jar tf C:\Users\loveleen.saini\AppData\Roaming\npm\node_mo
dules\appium\node_modules\appium-selendroid-driver\node_modules\appium-sele
ndroid-installer\selendroid\download\selendroid-server.jar’ errored out: Erro
r: spawn jar ENOENT
at exports._errnoException (util.js:870:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
at onErrorNT (internal/child_process.js:344:16)
at nextTickCallbackWith2Args (node.js:442:9)
at process._tickCallback (node.js:356:17)
at ChildProcess. (lib/teen_process.js:31:14)
at emitOne (events.js:77:13)
at ChildProcess.emit (events.js:169:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
at onErrorNT (internal/child_process.js:344:16)
at nextTickCallbackWith2Args (node.js:442:9)
at process._tickCallback (node.js:356:17)
npm ERR! Windows_NT 6.1.7601
npm ERR! argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\
node_modules\npm\bin\npm-cli.js” “install” “-g” “appium”
npm ERR! node v4.4.4
npm ERR! npm v2.15.1
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node install-npm.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script ‘node install-np
m.js’.
npm ERR! This is most likely a problem with the appium-chromedriver package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install-npm.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs appium-chromedriver
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR!
npm ERR! npm owner ls appium-chromedriver
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! C:\Windows\system32\npm-debug.log

+1 same issue when try to install it appium 1.5.2 through ‘npm install -g appium --verbose’ command on windows 10

Hello

Did anyone found a solution for this issue?

No solution and no response from anyone so far.

@isaac @jlipps @SergeyTichomirov

Can you please suggest something.

I was able to install by opening a new cmd window and running npm -g install core-js. Once the core-js installation was completed appium was also installed successfully.

@rahulmr Tried it but to no avail…

C:\Users\loveleen.saini>npm -g install core-js
[email protected] C:\Users\loveleen.saini\AppData\Roaming\npm\node_modules\core-js

C:\Users\loveleen.saini>npm -g install appium
npm WARN peerDependencies The peer dependency continuation-local-storage@~3 incl
uded from cls-bluebird will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerD
ependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it
explicitly.
npm WARN peerDependencies The peer dependency bluebird@>=1.0.3 included from cls
-bluebird will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerD
ependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it
explicitly.

[email protected] install C:\Users\loveleen.saini\AppData\Roaming\npm
node_modules\appium\node_modules\appium-android-driver\node_modules\appium-chrom
edriver
node install-npm.js

Error trying to install Chromedriver binary. Waiting and trying again. Cannot fi
nd module ‘…/lang/isNative’
info Chromedriver Install Installing Chromedriver version ‘2.21’ for platform ‘w
in’ and architecture ‘32’
info Chromedriver Install Opening temp file to write chromedriver_win32 to…
info Chromedriver Install Downloading http://chromedriver.storage.googleapis.com
/2.21/chromedriver_win32.zip…
info Chromedriver Install Writing binary content to C:\Users\LOVELE~1.SAI\AppDat
a\Local\Temp\2016615-10108-1c0rt8b\chromedriver_win32.zip…
info Chromedriver Install Extracting C:\Users\LOVELE~1.SAI\AppData\Local\Temp\20
16615-10108-1c0rt8b\chromedriver_win32.zip to C:\Users\LOVELE~1.SAI\AppData\Loca
l\Temp\2016615-10108-1c0rt8b\chromedriver_win32
info Chromedriver Install Creating C:\Users\loveleen.saini\AppData\Roaming\npm\n
ode_modules\appium\node_modules\appium-android-driver\node_modules\appium-chrome
driver\chromedriver\win…
info Chromedriver Install Copying unzipped binary, reading from C:\Users\LOVELE~
1.SAI\AppData\Local\Temp\2016615-10108-1c0rt8b\chromedriver_win32\chromedriver.e
xe…
info Chromedriver Install Writing to C:\Users\loveleen.saini\AppData\Roaming\npm
\node_modules\appium\node_modules\appium-android-driver\node_modules\appium-chro
medriver\chromedriver\win\chromedriver.exe…
info Chromedriver Install C:\Users\loveleen.saini\AppData\Roaming\npm\node_modul
es\appium\node_modules\appium-android-driver\node_modules\appium-chromedriver\ch
romedriver\win\chromedriver.exe successfully put in place

[email protected] install C:\Users\loveleen.saini\AppData\Roaming
\npm\node_modules\appium\node_modules\appium-selendroid-driver
node ./bin/install.js

dbug AndroidDriver Getting Java version
info SelendroidInstaller Ensuring C:\Users\loveleen.saini\AppData\Roaming\npm\no
de_modules\appium\node_modules\appium-selendroid-driver\node_modules\appium-sele
ndroid-installer\selendroid\download exists
info SelendroidInstaller Downloading Selendroid standalone server version 0.17.0
from https://github.com/selendroid/selendroid/releases/download/0.17.0/selendro
id-standalone-0.17.0-with-dependencies.jar → C:\Users\loveleen.saini\AppData\R
oaming\npm\node_modules\appium\node_modules\appium-selendroid-driver\node_module
s\appium-selendroid-installer\selendroid\download\selendroid-server.jar
info AndroidDriver Java version is: 1.8.0_74
info SelendroidInstaller Writing binary content to C:\Users\loveleen.saini\AppDa
ta\Roaming\npm\node_modules\appium\node_modules\appium-selendroid-driver\node_mo
dules\appium-selendroid-installer\selendroid\download\selendroid-server.jar
info SelendroidInstaller Selendroid standalone server downloaded
info SelendroidInstaller Determining AndroidManifest location
Error: Command ‘jar tf C:\Users\loveleen.saini\AppData\Roaming\npm\node_mo
dules\appium\node_modules\appium-selendroid-driver\node_modules\appium-sele
ndroid-installer\selendroid\download\selendroid-server.jar’ errored out: Erro
r: spawn jar ENOENT
at exports._errnoException (util.js:870:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
at onErrorNT (internal/child_process.js:344:16)
at nextTickCallbackWith2Args (node.js:442:9)
at process._tickCallback (node.js:356:17)
at ChildProcess. (lib/teen_process.js:31:14)
at emitOne (events.js:77:13)
at ChildProcess.emit (events.js:169:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
at onErrorNT (internal/child_process.js:344:16)
at nextTickCallbackWith2Args (node.js:442:9)
at process._tickCallback (node.js:356:17)
npm ERR! Windows_NT 6.1.7601
npm ERR! argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\
node_modules\npm\bin\npm-cli.js” “-g” “install” “appium”
npm ERR! node v4.4.5
npm ERR! npm v2.15.5
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-selendroid-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 information on how to open an issue for this project with:
npm ERR! npm bugs appium-selendroid-driver
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR!
npm ERR! npm owner ls appium-selendroid-driver
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\loveleen.saini\npm-debug.log

@obstar @alexlazarciuc

I did more research on this issue and realised that, in PATH system variable the path to java jdk’s bin folder should also be added. ("…\Java\jdk1.8.0_92\bin")

Add this if missing on your computers and run command prompt (as administrator to be on safe side) and run ‘npm install -g appium’

It worked without any issues on my computer after I added it.
I have Appium 1.5.3 now :slight_smile:

All the best!

That’s great. Even I realised that I already had the jdk set on my PATH so I never encountered that problem

which version of java are you using? x86 or x64?

i’m running windows 7, x64 java, npm 1.4.9 and node 5.10.1. My path is set correctly but I still see the same errors you guys are getting.

I am on Windows 7, x64 java, node 4.4.7, and npm 2.15.8

Relevant system variables:
JAVA_Home = C:\Program Files\Java\jdk1.8.0_92
Path = C:\Program Files\Java\jdk1.8.0_92\bin;C:\Program Files\nodejs\

@Loveleen Thanks a mill for your reply! And sorry for late, late reply from our side.