Telegram-Mini-Apps / telegram-apps

Made from scratch TypeScript packages, examples and documentation you will surely need to start developing on Telegram Mini Apps.
https://docs.telegram-mini-apps.com/
MIT License
740 stars 205 forks source link

[Bug]: installation fails when trying to run npx script #270

Closed I-grok-I closed 8 months ago

I-grok-I commented 8 months ago

Telegram Application

Telegram for iOS, Telegram for macOS, Telegram Desktop

Describe the Bug

When i run "npx @tma.js/create-mini-app " after i specify directory name it shows this:

Снимок экрана 2024-03-29 в 16 12 15

and nothing happens until i press "return" (aka "Enter") button.

Then it returns Error:

Снимок экрана 2024-03-29 в 16 13 57

What could cause the problem ?

To Reproduce

Steps to reproduce the behavior:

  1. Go to https://docs.telegram-mini-apps.com/packages/tma-js-sdk and copy installation terminal script from there.
  2. Go to NodeJS and navigate to any directory, then run the script that you've copied in step 1.
  3. Follow wizard instructions
  4. See error

Expected Behavior

I expected to get the boilerplate initialized successfully

heyqbnk commented 8 months ago

We already got some developer having a similar issue. He then wrote back that there was something wrong with his local git utility configuration

I-grok-I commented 8 months ago

@heyqbnk should i have already initialized git repository before running the npx script in terminal ?

heyqbnk commented 8 months ago

@heyqbnk should i have already initialized git repository before running the npx script in terminal ?

Nope. Under the hood, this utility just uses the command like git clone .... You could try doing the same with reactjs-template:

https://github.com/Telegram-Mini-Apps/reactjs-template

heyqbnk commented 8 months ago

Here is the possible solution for your problem: https://askubuntu.com/questions/45679/ssh-connection-problem-with-host-key-verification-failed-error

heyqbnk commented 8 months ago

I have added a new update which makes CLI try to use repository HTTPS link first and then SSH link. This can also solve your problem