starter icon indicating copy to clipboard operation
starter copied to clipboard

Can't run dev command

Open jinrenjie opened this issue 2 years ago • 2 comments

Output:

$ mintlify dev
✖ Running mintlify dev for the first time requires an internet connection.

jinrenjie avatar Apr 28 '23 07:04 jinrenjie

have same error

liuhuapiaoyuan avatar May 16 '23 11:05 liuhuapiaoyuan

same error

smyja avatar Jul 24 '23 20:07 smyja

no fix, anyone?

ahmedmansoor avatar Sep 08 '24 05:09 ahmedmansoor

The problem may be that your current network environment cannot request mint-releases.b-cdn.net. You can try using a proxy.

jinrenjie avatar Sep 08 '24 08:09 jinrenjie

Can you add more retries for this command line? I can access https://mint-releases.b-cdn.net/mint-0.0.613.tar.gz via my browser and setup my proxy properly, but the command line still fails. It seems that it is retrying for 2 times? Can you add more retries?

retry: { limit: 2, methods: [ 'GET', 'PUT', 'HEAD', 'DELETE', 'OPTIONS', 'TRACE' ], statusCodes: [ 408, 413, 429, 500, 502, 503, 504, 521, 522, 524 ], errorCodes: [ 'ETIMEDOUT', 'ECONNRESET', 'EADDRINUSE', 'ECONNREFUSED', 'EPIPE', 'ENOTFOUND', 'ENETUNREACH', 'EAI_AGAIN' ], maxRetryAfter: undefined, calculateDelay: [Function: calculateDelay], backoffLimit: Infinity, noise: 100 },

ming535 avatar Sep 26 '24 04:09 ming535

同样的问题,通过浏览器下载后,修改这个文件 mintlify\node_modules\@mintlify\previewing\dist\local-preview\index.js,直接注释掉这行 //yield pipeline(got.stream(TAR_URL), fse.createWriteStream(TAR_PATH)); 不然他每次运行都会下载。

wyrover avatar Dec 10 '24 05:12 wyrover