Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

npm install appium failed:errno -5,unexpected end of file #14394

Closed
wanwan001 opened this issue Oct 24, 2016 · 5 comments
Closed

npm install appium failed:errno -5,unexpected end of file #14394

wanwan001 opened this issue Oct 24, 2016 · 5 comments

Comments

@wanwan001
Copy link

wanwan001 commented Oct 24, 2016

When I am reinstalling the appium, the terminal reports the error as followes:

wanwandeMac:npm wanwan$ npm install -g appium
npm ERR! tar.unpack unzip error /var/folders/tf/89068tvn199bhwpk5r3hg03h0000gn/T/npm-3970-7391db21/registry.npmjs.org/appium-adb/-/appium-adb-2.6.17.tgz
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/Cellar/node/6.9.1/bin/node" "/usr/local/bin/npm" "install" "-g" "appium"
npm ERR! node v6.9.1
npm ERR! npm  v3.10.9
npm ERR! code Z_BUF_ERROR
npm ERR! errno -5

npm ERR! unexpected end of file
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     https://github.com/npm/npm/issues

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

I have tried to solve this problem by searching the internet, but it just not being solved by the method provided. Hoping for some help, thank you very much!

@wanwan001 wanwan001 changed the title npm install appium failed npm install appium failed:errno -5 Oct 24, 2016
@wanwan001 wanwan001 changed the title npm install appium failed:errno -5 npm install appium failed:errno -5,unexpected end of file Oct 25, 2016
@watilde
Copy link
Contributor

watilde commented Oct 25, 2016

Hi! I think it's reported an issue on #11993. Can you try npm cache clean and install again?

@wanwan001
Copy link
Author

@watildeOK,I will have a try, thank you.

@rajshah
Copy link

rajshah commented Jan 20, 2017

npm install -g appium is working after npm cache clean. Thank you! I suppose issue might be due to post upgrade of node and npm versions. I am using brew and I did upgrade on brew, node and npm before installing appium without cleaning cache.

@npm-robot
Copy link

We're closing this support issue as it has gone three days without activity. The npm CLI team itself does not provide support via this issue tracker, but we are happy when users help each other here. In our experience once a support issue goes dormant it's unlikely to get further activity. If you're still having problems, you may be better served by joining package.community and asking your question there.

For more information about our new issue aging policies and why we've instituted them please see our blog post.

@grrowl
Copy link

grrowl commented Jan 11, 2018

For future reference: Node 8.9.0+ (and 9+) fix an issue where streams are terminated early in some scenarios. If you're getting this error upgrade to 8.9.

nodejs/node#13391

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants