NativeScript / NativeScript/nativescript-cli

'tns create' hangs for half an hour and then fails

Open
#4,781 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.1k
Forks
204
Avg merge
1d 9h
Merged PRs (30d)
8

Description

@ezpzlmnsqzy1 commented on Thu Jun 27 2019

Environment
Result of tns info:
Component nativescript has 5.4.2 version and is up to date.

Describe the bug
Running the command tns create HelloWorld --template tns-template-blank results in a hang with no output for roughly half an hour before failing with the message request to https://registry.npmjs.org/tns-template-blank failed, reason: read ECONNRESET

Expected behavior
A project is created

Additional context
I suspect this is related to me being behind a company proxy. However, I set my proxy info using tns proxy set with no change to the behavior. Setting the same proxy info in many other programs and tools works just fine, so I'm not entirely sure this is the cause of the issue here

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running tns create HelloWorld --template tns-template-blank with the reported proxy configuration and observe the request to registry.npmjs.org. Trace the CLI's proxy and template-download handling, then verify that the command either creates the project or fails promptly with an actionable error instead of hanging.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.