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-redwood-app includes private Verdaccio registry causing installation failure #11706

Closed
1 task done
mrkimani-ndegwa opened this issue Oct 24, 2024 · 5 comments
Closed
1 task done
Assignees
Labels
bug/needs-info More information is needed for reproduction

Comments

@mrkimani-ndegwa
Copy link

mrkimani-ndegwa commented Oct 24, 2024

What's not working?

When creating a new Redwood project with npx create-redwood-app, the generated package.json includes a private Verdaccio registry that causes installation to fail for new users.

Current Behavior

The generated package.json includes a private registry reference:

json
"resolutions": {
    "@storybook/react-dom-shim@npm:7.6.17": "https://verdaccio.tobbe.dev/@storybook/react-dom-shim/-/react-dom-shim-8.0.8.tgz"
}

This causes yarn install to fail with:

error Couldn't find package "//verdaccio.tobbe.dev/" on the "npm" registry.

How do we reproduce the bug?

  • Run npx create-redwood-app@latest my-app
  • Navigate to project directory: cd my-app
  • Run yarn install
  • Observe the Verdaccio registry error

What's your environment? (If it applies)

No response

Are you interested in working on this?

  • I'm interested in working on this
@mrkimani-ndegwa mrkimani-ndegwa added the bug/needs-info More information is needed for reproduction label Oct 24, 2024
@carsonwlee
Copy link

I'm having this issue also

@dthyresson
Copy link
Contributor

What's not working?

When creating a new Redwood project with npx create-redwood-app, the generated package.json includes a private Verdaccio registry that causes installation to fail for new users.

Current Behavior

The generated package.json includes a private registry reference:

json
"resolutions": {
    "@storybook/react-dom-shim@npm:7.6.17": "https://verdaccio.tobbe.dev/@storybook/react-dom-shim/-/react-dom-shim-8.0.8.tgz"
}

This causes yarn install to fail with:

error Couldn't find package "//verdaccio.tobbe.dev/" on the "npm" registry.

How do we reproduce the bug?

  • Run npx create-redwood-app@latest my-app
  • Navigate to project directory: cd my-app
  • Run yarn install
  • Observe the Verdaccio registry error

@Tobbe as this message references one of your packages do you have any ideas how to resolve?

@andychongyz
Copy link

andychongyz commented Nov 2, 2024

From #10899, prefixing the yarn command with corepack works for me. Instead of running yarn install, run corepack yarn install

@iamwinner422
Copy link

From #10899, prefixing the yarn command with corepack works for me. Instead of running yarn install, run corepack yarn install

That really works! Thanks 🎉

@Tobbe
Copy link
Member

Tobbe commented Nov 11, 2024

Yeah, the issue here isn't the registry link. The issue is that yarn isn't installed properly. Yarn needs to be installed/enabled by corepack. If you have a globally installed yarn version already, please uninstall that first.

We have a page for yarn in our documentation https://docs.redwoodjs.com/docs/how-to/using-yarn

@Tobbe Tobbe closed this as completed Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/needs-info More information is needed for reproduction
Projects
None yet
Development

No branches or pull requests

6 participants