Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Expo Error starting tunnel Failed to install @expo/ngrok@^2.4.3 globally

Tags:

npm

expo

I'm trying to run expo with a tunnel connection and I keep getting the following error:

Error starting tunnel Failed to install @expo/ngrok@^2.4.3 globally: npm exited with non-zero code: 243

I've tried installing this version of ngrok globally and just within my project as well as removing it to allow expo to do the install automatically. It did run successfully once by starting the project with expo start instead of npm start but this seems to no longer work.

like image 783
SamH Avatar asked Mar 23 '21 15:03

SamH


People also ask

Is it possible to install ngrok with Expo?

I've tried installing this version of ngrok globally and just within my project as well as removing it to allow expo to do the install automatically. It did run successfully once by starting the project with expo start instead of npm start but this seems to no longer work. I'm sure that I did this at one point with no luck but it works now.

Why is my ngrok tunnel authtoken suspended?

This is usually the result of violating the ngrok Terms of Service. Email [email protected] if you think your suspension is an error. The authtoken you specified does not look like a proper ngrok tunnel authtoken.

Why is this tunnel no longer available for this endpoint?

This tunnel is no longer available as its account does not own resources required to run. Endpoint configurations cannot be used with agent-specified basic auth. Either remove the endpoint configuration from this endpoint or restart the agent without basic auth.

How many tunnels can I run on a single ngrok session?

Your account may not run more than max tunnels over a single ngrok client session. The tunnels already running on this session are: urls Invalid character char in domain name.


2 Answers

run npm install @expo/[email protected]

like image 128
kenkn Avatar answered Nov 15 '22 06:11

kenkn


Install ngrok and run it in terminal using this command ngrok http 3000. Then in other terminal run expo start. It will work surely.

like image 29
Bilal Yaqoob Avatar answered Nov 15 '22 08:11

Bilal Yaqoob