Skip to content
This repository has been archived by the owner. 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

Comments

@wanwan001
Copy link

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

This comment has been minimized.

Copy link
Contributor

commented Oct 25, 2016

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

@wanwan001

This comment has been minimized.

Copy link
Author

commented Oct 26, 2016

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

@rajshah

This comment has been minimized.

Copy link

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.

@rajshah rajshah referenced this issue Jan 20, 2017
0 of 3 tasks complete
@npm-robot

This comment has been minimized.

Copy link

commented Jun 16, 2017

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.

@npm-robot npm-robot closed this Jun 16, 2017
@grrowl

This comment has been minimized.

Copy link

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
6 participants
You can’t perform that action at this time.