Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm create astro@latest doesn't work #7480

Closed
1 task
nadjib-boum opened this issue Jun 26, 2023 · 2 comments · Fixed by #7539
Closed
1 task

npm create astro@latest doesn't work #7480

nadjib-boum opened this issue Jun 26, 2023 · 2 comments · Fixed by #7539
Labels
- P3: minor bug An edge case that only affects very specific usage (priority) pkg: create-astro Related to the `create-astro` package (scope)

Comments

@nadjib-boum
Copy link

nadjib-boum commented Jun 26, 2023

What version of astro are you using?

2.7.0

Are you using an SSR adapter? If so, which one?

no

What package manager are you using?

npm

What operating system are you using?

windows

What browser are you using?

chrome

Describe the Bug

when I try installing Astro using this command: npm create astro@latest
this error appears:
TypeError [ERR_INVALID_PROTOCOL]: Protocol "http:" not supported. Expected "https:" at new NodeError (node:internal/errors:372:5) at new ClientRequest (node:_http_client:164:11) at request (node:https:353:10) at get (node:https:387:15) at file:///C:/Users/username/AppData/Local/npm-cache/_npx/abdb4b598af046c4/node_modules/create-astro/dist/index.js:259:3 at processTicksAndRejections (node:internal/process/task_queues:96:5) { code: 'ERR_INVALID_PROTOCOL' }

What's the expected result?

Astro should start installing

Link to Minimal Reproducible Example

no link

Participation

  • I am willing to submit a pull request for this issue.
@bluwy
Copy link
Member

bluwy commented Jun 26, 2023

Same as #7362 (comment)

But keeping it separate for now as it's two different issues.

@bluwy bluwy added pkg: create-astro Related to the `create-astro` package (scope) - P3: minor bug An edge case that only affects very specific usage (priority) labels Jun 26, 2023
@moeyua
Copy link

moeyua commented Jun 30, 2023

Utilizing the "https://registry.npmjs.org/" instead of an alternative registry mirror proves efficacious in my case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- P3: minor bug An edge case that only affects very specific usage (priority) pkg: create-astro Related to the `create-astro` package (scope)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants