NativeScript / NativeScript/nativescript-cli
'tns create' hangs for half an hour and then fails
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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