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

Confuse Documentation for npmrc #7993

Closed
pabtab opened this issue Oct 2, 2023 · 4 comments
Closed

Confuse Documentation for npmrc #7993

pabtab opened this issue Oct 2, 2023 · 4 comments
Labels

Comments

@pabtab
Copy link

pabtab commented Oct 2, 2023

Describe the bug

For Private components, the .npmrc works with domain .dev instead of .cloud which is wrong at the documentation: https://bit.dev/reference/packages/npmrc/

Steps to Reproduce

  1. Add a private component
  2. Add .npmrc using .cloud
    @my-bit-org-or-username:registry=https://node-registry.bit.cloud @teambit:registry=https://node-registry.bit.cloud //node-registry.bit.cloud/:_authToken=BIT_CLOUD_AUTH_TOKEN always-auth=true
  3. Cannot find the component - 404 NOT FOUND - after Yarn install or npm i

Expected Behavior

Add .npmrc with domain .dev
@my-bit-org-or-username:registry=https://node-registry.bit.dev @teambit:registry=https://node-registry.bit.dev //node-registry.bit.cloud/:_authToken=BIT_CLOUD_AUTH_TOKEN always-auth=true

Specifications

  • Bit version: 1.1.0
  • Workspace type: (harmony/legacy)
  • Node version: 16.15.0
  • npm / yarn version: 8.5.0/1.22.0
  • Platform: Mac / Linux
@pabtab pabtab added the type/bug label Oct 2, 2023
@GiladShoham
Copy link
Member

Cloud is the correct one. Dev is the old one.
If you have specific component that get 404 with cloud please mention its name so we can look into it and fix it.
@guysaar223 fyi

@pabtab
Copy link
Author

pabtab commented Oct 3, 2023

Ohh got it, however, It doesn't work for me with cloud, the components are called: @tmrw-ls/clinic.components.button-dynamic and @tmrw-ls/clinic.utils which are private. Thank you

@itaymendel
Copy link
Contributor

hi, you still get an error?
if so, what is the error and how does your current npmrc look like?

@pabtab
Copy link
Author

pabtab commented Oct 10, 2023

There is still an issue with .cloud, so after many days of trying to solve it, I figured out that with .dev it works. So we have it like this:

@tmrw-ls:registry=https://node.bit.dev
@teambit:registry=https://node.bit.dev
//node.bit.dev/:_authToken=TOKEN
always-auth=true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants