Installation Issue

Hi folks,

  I am facing this issue while installing expo. I am following "https://docs.expo.io/versions/v16.0.0/guides/building-standalone-apps.html" this link and have executed npm install -g exp, but unfortunately it shows :

tar.unpack unzip error /var/folders/kl/d33brmlx07l2gsr0yj5mjk_c0000gn/T/npm-2027-842d605d/registry.npmjs.org/_40expo/ngrok/-/ngrok-2.2.9.tgz
npm ERR! code Z_BUF_ERROR
npm ERR! errno -5
npm ERR! unexpected end of file
npm ERR! tar.unpack untar error /var/folders/kl/d33brmlx07l2gsr0yj5mjk_c0000gn/T/npm-2027-842d605d/registry.npmjs.org/_40expo/ngrok/-/ngrok-2.2.9.tgz

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/s/.npm/_logs/2017-11-14T12_44_02_125Z-debug.log
s-MacBook-Air:React_Navigation Nitish$ npm cache clean
s-MacBook-Air:React_Navigation Nitish$ npm install https://registry.npmjs.org/@expo/ngrok/-/ngrok-2.2.9.tgz
npm ERR! tar.unpack unzip error /var/folders/kl/d33brmlx07l2gsr0yj5mjk_c0000gn/T/npm-2042-8e3a059d/registry.npmjs.org/_40expo/ngrok/-/ngrok-2.2.9.tgz
npm ERR! code Z_BUF_ERROR
npm ERR! errno -5
npm ERR! unexpected end of file

I tried uninstalling node but still the same, I have then installed yarn but it gets stuck at 424/425.

Kindly guide.

It seems like things didn’t download completely, I would try to install with yarn again. Sometimes it does seem like it gets stuck at the last value of the counter, but it does go through (in my experience)

I have tried 3-4 times but it always get stuck at 424/425

Run with verbose to see what its stuck on

I’m not sure how to resolve this but it looks like the issue could be unrelated to Expo. Several other people have encountered similar errors with other projects – search for “npm Z_BUF_ERROR” for example. That might lead you to a solution.