Skip to content

fix: add troubleshooting tips for npm template not found error#1055

Merged
fengmk2 merged 12 commits intovoidzero-dev:mainfrom
naokihaba:main
Mar 20, 2026
Merged

fix: add troubleshooting tips for npm template not found error#1055
fengmk2 merged 12 commits intovoidzero-dev:mainfrom
naokihaba:main

Conversation

@naokihaba
Copy link
Copy Markdown
Contributor

@naokihaba naokihaba commented Mar 19, 2026

Linked issue

resolves #828

Description

The behavior when specifying an invalid template name (e.g., vite-plus-app) with the vp create command has been improved.

With this update, the CLI now checks the npm registry before executing the package manager. If the template is not found (HTTP 404 error), it will display an error message and terminate the process immediately.

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 19, 2026

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit 1cebc0e
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/69bce2828b1a610008602b83

@fengmk2
Copy link
Copy Markdown
Member

fengmk2 commented Mar 20, 2026

If it's an npm package, can we check if it exists in the registry first? The error message after running is also confused too.

@naokihaba naokihaba marked this pull request as draft March 20, 2026 01:50
@naokihaba naokihaba marked this pull request as ready for review March 20, 2026 02:19
@fengmk2
Copy link
Copy Markdown
Member

fengmk2 commented Mar 20, 2026

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Copy link
Copy Markdown
Member

@fengmk2 fengmk2 left a comment

Choose a reason for hiding this comment

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

@naokihaba Thanks!

@fengmk2 fengmk2 merged commit 38265d4 into voidzero-dev:main Mar 20, 2026
22 checks passed
@kazupon
Copy link
Copy Markdown
Collaborator

kazupon commented Mar 20, 2026

@naokihaba welcome contributions! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect registry causing project creation to fail

3 participants