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

appium installed failed with "npm ERR! tar.unpack unzip error /tmp/npm-16373-0d525ef3/registry.npmjs.org/appium-adb/-/appium-adb-2.4.3.tgz" #12026

Closed
Aimely opened this issue Mar 23, 2016 · 2 comments

Comments

@Aimely
Copy link

Aimely commented Mar 23, 2016

I'm trying to install appium in my Mac , but it failed ; I've tried reinstalled node.js again ,it didn't work, what's the problem ? Any suggestions?

npm ERR! tar.unpack unzip error /tmp/npm-16373-0d525ef3/registry.npmjs.org/appium-adb/-/appium-adb-2.4.3.tgz
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/Cellar/node/5.9.0/bin/node" "/usr/local/bin/npm" "install" "-g" "appium"
npm ERR! node v5.9.0
npm ERR! npm v3.7.3

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/didi/npm-debug.log

@zkat
Copy link
Contributor

zkat commented Mar 23, 2016

Hey! This sort of thing will occasionally happen due to unknown issues with the cache, terminating processes, etc. Basically it involves a bad tarball somehow making its way into your cache. I'm going to close this as a duplicate of #11993.

For now, could you try doing npm cache clean and trying again? That tends to clear up the issue. Please direct further discussion with more details at that other thread, if it doesn't work. :)

@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

3 participants