Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Command gets stuck while installing expo-cli

I am trying to install expo-cli on Windows 10 OS for react native through npm install expo-cli --global command, but it gets stuck at this line.

enter image description here

  • I've tried clearing npm cache and reinstalling node.
  • I've tried running the command npm install expo-cli --global in powershell.
  • I've tried installing expo-cli through yarn, but it gets stuck on an error There appears to be trouble with your internet connection. Retrying... ,although I checked and my internet is working fine.

I'm not able to figure out how to resolve it.

like image 741
Asfiya Shaikh Avatar asked Mar 02 '23 15:03

Asfiya Shaikh


1 Answers

  1. run npm cache verify
  2. run npm install expo-cli --global --no-optional

this worked for me. Also, consider using Powershell instead of cmd

like image 197
Hackman Avatar answered Mar 05 '23 15:03

Hackman