Skip to content

Conversation

saatvik-10
Copy link

@saatvik-10 saatvik-10 commented Oct 2, 2025

Description

Added robust error handling for package installation and compatibility in the CLI. Now, failed installs are retried, incomplete projects are cleaned up, and users get clear troubleshooting tips. Compatibility warnings are shown before setup.

Related Issue

Fixes #24

Type of Change

  • New feature (non-breaking change adding functionality)
  • Documentation update

Testing

  • Manual CLI tests for error scenarios
  • Added error handling unit/integration tests

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Copy link
Owner

@gaureshpai gaureshpai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Do consider staring the repository
  2. Can you please provide effective screenshots and screen recording describing the changes
    Thank you for your contributions

@saatvik-10
Copy link
Author

  1. Do consider staring the repository

    1. Can you please provide effective screenshots and screen recording describing the changes
      Thank you for your contributions
Screenshot from 2025-10-03 18-05-22 Screenshot from 2025-10-03 18-04-05

A retry fn has been added to retry any failure a given number of times (say a package err) and a proper error handling has been added to check for the mechanism (test-error-handling.js)

Ex- If node and npm installed versions are lower than the one mentioned inside utils.js, an error will be thrown at the end inside the terminal (errors.push(err.message))

Screenshot from 2025-10-03 18-08-56

@saatvik-10 saatvik-10 requested a review from gaureshpai October 3, 2025 12:39
@gaureshpai
Copy link
Owner

Hey @saatvik-10 can u please provide screen recording describing the changes, run npm pack, and execute the tgz file for the error check, Thank you

@gaureshpai
Copy link
Owner

Any updates @saatvik-10 ?

@gaureshpai gaureshpai added the question Further information is requested label Oct 5, 2025
@gaureshpai gaureshpai marked this pull request as draft October 5, 2025 19:30
@gaureshpai
Copy link
Owner

Any updates on this PR @saatvik-10 ?

@saatvik-10 saatvik-10 removed their assignment Oct 7, 2025
@gaureshpai gaureshpai added the invalid This doesn't seem right label Oct 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request hacktoberfest invalid This doesn't seem right question Further information is requested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: handle ll the errors related to package installation and compatibility

2 participants