Skip to content

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

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

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

Conversation

@naokihaba

@naokihaba naokihaba commented Mar 19, 2026

Copy link
Copy Markdown
Collaborator

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

netlify Bot commented Mar 19, 2026

Copy link
Copy Markdown

Deploy Preview for viteplus-preview canceled.

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

@fengmk2

fengmk2 commented Mar 20, 2026

Copy link
Copy Markdown
Member

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
Comment thread packages/cli/src/utils/package.ts Outdated
@naokihaba naokihaba marked this pull request as ready for review March 20, 2026 02:19
@fengmk2

fengmk2 commented Mar 20, 2026

Copy link
Copy Markdown
Member

@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.

@fengmk2 fengmk2 left a comment

Copy link
Copy Markdown
Member

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

kazupon commented Mar 20, 2026

Copy link
Copy Markdown
Collaborator

@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