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

create-astro: set custom registry during project scaffold #7279

Closed
1 task
calebdwilliams opened this issue Jun 2, 2023 · 1 comment
Closed
1 task

create-astro: set custom registry during project scaffold #7279

calebdwilliams opened this issue Jun 2, 2023 · 1 comment

Comments

@calebdwilliams
Copy link
Contributor

What version of astro are you using?

latest

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

N/A

What package manager are you using?

npm

What operating system are you using?

Mac

What browser are you using?

N/A

Describe the Bug

My workspace currently blocks access to the global npm registry, instead filtering all traffic through an internal registry. Unfortunately that means running the scaffold command npm create astro@latest results in the following error:

node:events:491
      throw er; // Unhandled 'error' event
      ^

Error: Client network socket disconnected before secure TLS connection was established
    at connResetException (node:internal/errors:705:14)
    at TLSSocket.onConnectEnd (node:_tls_wrap:1594:19)
    at TLSSocket.emit (node:events:525:35)
    at endReadableNT (node:internal/streams/readable:1358:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
Emitted 'error' event on ClientRequest instance at:
    at TLSSocket.socketErrorListener (node:_http_client:494:9)
    at TLSSocket.emit (node:events:513:28)
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  code: 'ECONNRESET',
  path: null,
  host: 'registry.npmjs.org',
  port: 443,
  localAddress: undefined
}

I need some way to point the create script at a local registry rather than the global npm registry. This value can then be passed down to giget's --registry flag. Unfortunately setting the environment variable doesn't seem to help.

Link to Minimal Reproducible Example

N/A

Participation

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

bluwy commented Jun 9, 2023

fixed in #7326

@bluwy bluwy closed this as completed Jun 9, 2023
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

No branches or pull requests

2 participants