Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.packages/create-awesome-node-app/index.js my-app not working #32

Closed
VoidVampire opened this issue Oct 2, 2023 · 12 comments
Closed

.packages/create-awesome-node-app/index.js my-app not working #32

VoidVampire opened this issue Oct 2, 2023 · 12 comments
Labels
bug Something isn't working

Comments

@VoidVampire
Copy link

Describe the bug

https://github.com/Create-Node-App/create-node-app#running-locally
I am having issue running the last command on Fedora 38 which is : .packages/create-awesome-node-app/index.js my-app

Expected Behavior

it should start creating node app

Current Behavior

getting error

Reproduction Steps

https://github.com/Create-Node-App/create-node-app#running-locally

Possible Solution

No response

Additional Information/Context

image

Version used

latest of everything except node since it used v18

Environment details (OS name and version, etc.)

Fedora 38

@VoidVampire VoidVampire added the bug Something isn't working label Oct 2, 2023
@VoidVampire VoidVampire changed the title .packages/create-awesome-node-app/index.js my-app not workinf .packages/create-awesome-node-app/index.js my-app not working Oct 2, 2023
@ulises-jeremias
Copy link
Member

@VoidVampire hey! thanks for opening this issue 😊

quick questions to understand the error:

  • what happens if you run it again? 👀
  • what happens if you run the command in a fresh installation? doing the following:
cd /tmp
fnm use 18
npm i -g create-awesome-node-app@latest
create-awesome-node-app my-app

@VoidVampire
Copy link
Author

  1. Running it again results in same error
  2. Same error 😓

image

I am not sure if this is just me or for everyone 😅

@ulises-jeremias
Copy link
Member

@VoidVampire here you can update the code locally to print the error you are getting

// Handle network error, e.g., log it or show a user-friendly message.

you will need to build the code again before giving it a try

@VoidVampire
Copy link
Author

I rebuilded and console logged "Error ->>>>>>>>>>" and the error itself: https://codeshare.io/createnodeappissue

@ulises-jeremias
Copy link
Member

@VoidVampire seems to be a timeout error. Can you try doing a curl to that endpoint?

curl https://raw.githubusercontent.com/nanlabs/frontend-reference/main/examples.json

@VoidVampire
Copy link
Author

Getting this error even after restarting laptop

curl: (28) Failed to connect to raw.githubusercontent.com port 443 after 134599 ms: Couldn't connect to server

image

@ulises-jeremias
Copy link
Member

ulises-jeremias commented Oct 2, 2023

oh ok, that means you are having problems trying to fetch stuff from github 🤔 it could be a networking issue or something else. Not sure how exactly I can help on that. Can you send me the output of the following command?

create-awesome-node-app --info

@VoidVampire
Copy link
Author

VoidVampire commented Oct 2, 2023

Environment Info:

  System:
    OS: Linux 6.5 Fedora Linux 38 (Workstation Edition)
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
    Memory: 13.36 GB / 15.33 GB
    Shell: 5.2.15 - /bin/bash
  Binaries:
    Node: 18.14.2 - /run/user/1000/fnm_multishells/3059_1696261769735/bin/node
    Yarn: Not Found
    npm: 9.5.0 - /run/user/1000/fnm_multishells/3059_1696261769735/bin/npm
    pnpm: Not Found
    Watchman: Not Found
  Browsers:
    Chrome: Not Found`

@ulises-jeremias
Copy link
Member

Possible Solutions:

  1. Network Connectivity:

    • Ensure you have an active network connection.
    • Verify if you can access other websites from your machine.
  2. Firewall:

    • Check if there's a firewall that might be blocking the connection. Temporarily disable the firewall to test.
  3. Proxy:

    • If behind a proxy, ensure the proxy configuration is correct. You can set the proxy for curl using the http_proxy and https_proxy environment variables.

      export http_proxy=http://proxy_name:port
      export https_proxy=http://proxy_name:port
  4. DNS:

    • Ensure your system can resolve the domain name raw.githubusercontent.com correctly. Try a separate DNS query to verify.

      nslookup raw.githubusercontent.com
  5. Long Timeout:

    • In some cases, the network might be congested or have temporary issues. Retry the curl command after some time.
  6. Change DNS Server:

    • Try changing your DNS configuration to use a different public DNS server, such as Google (8.8.8.8 and 8.8.4.4) or Cloudflare (1.1.1.1).

      sudo nano /etc/resolv.conf

      Add or modify lines to use a different DNS server:

      nameserver 8.8.8.8
      nameserver 8.8.4.4

      Save the changes and try again.

After performing these checks, you should be able to determine the cause of the issue and take appropriate actions. If the problem persists, consider seeking help on Fedora or GitHub support forums, as it may be specific to your environment or configuration.

@ulises-jeremias
Copy link
Member

@VoidVampire let me know if there is something else I can do to help!

@VoidVampire
Copy link
Author

VoidVampire commented Oct 3, 2023

@ulises-jeremias Hi, so adding 8.8.8.8 to dns sovled the issue, thanks for it. Also, I apologise it's been just few weeks since I have started using linux (fedora) and I never had this issue on windows so I couldn't figure out this on my own.

So this issue is resolved.

@VoidVampire
Copy link
Author

Since this issue is solved, I will close the issue with this comment and put my other issues elsewhere

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants