Why does the command npm install -g expo-cli not working

I'm trying to learn some React-Native and I actually have some problems with installing expo-cli!

I already installed Node.js on it's latest LTS version and when I execute the command npm install -g expo-cli it starts working till extracting tarball data for @expo/[email protected].

I still getting this for hours without progression showing this error :

tarball tarball data for @expo/[email protected] ... seems to be corrupted. Trying one more time.

this screenshot shows all the problem I had Any solution please ?

Upvotes: 3

Views: 1158

Answers (2)

André Luis
André Luis

Reputation: 1

Run the cmd with execute by administrator and install:
npm install -g expo-cli.

Upvotes: -1

Denis S.
Denis S.

Reputation: 138

Update gems:

gem install rubygems-update
update_rubygems
gem update --system

Documentation for fastline said. This is traveling ruby 2.2.2 packaged with a gem dependency on fastlane and with some expo specific scripts, included is a ruby interpreter for Linux.

Also npm:

npm install -g npm@latest

Upvotes: 3

Related Questions