GithubHelp home page GithubHelp logo

Having trouble with bit install about bit HOT 7 CLOSED

murm avatar murm commented on June 6, 2024 1
Having trouble with bit install

from bit.

Comments (7)

itaymendel avatar itaymendel commented on June 6, 2024 1

a valid .npmrc should look similar to this; it has a line for your organization as a scoped-registry and a line defining the token for authentication.
if you move from node.bit.cloud to node-registry.bit.cloud, please also delete your lock-file, as sometimes it contains references to the registry url, so it needs to be re-evaluated:

@bitdev:registry=https://node-registry.bit.cloud
@teambit:registry=https://node-registry.bit.cloud
@YOUR-ACCOUNT:registry=https://node-registry.bit.cloud
//node-registry.bit.cloud/:_authToken=TOKEN

from bit.

benjgil avatar benjgil commented on June 6, 2024

HI @murm
It seems you dont have the npmrc config for installing @teambit packages.
Please run the following to add it:
npm config set '@teambit:registry' https://node-registry.bit.cloud

from bit.

artem-zaiko-yara avatar artem-zaiko-yara commented on June 6, 2024

bump

from bit.

artem-zaiko-yara avatar artem-zaiko-yara commented on June 6, 2024

Try to get auth token with bit config get user.token

and then set it in .npmrc

//node-registry.bit.cloud/:_authToken=<token>
//node.bit.cloud/:_authToken=<token>

from bit.

NikitaRogozhyn avatar NikitaRogozhyn commented on June 6, 2024

Hi everyone

I'm facing the same issue right now.
I've tried to do these steps @benjgil @artem-zaiko-yara but it doesn't help. I've also recovered the approach from the official documentation https://bit.dev/reference/packages/npmrc but it doesn't work as well.

from bit.

albertovaccarella avatar albertovaccarella commented on June 6, 2024

Same issue when deploying one of my apps to heroku, which I configured with an .npmrc as per docs (pointing to node-registry.bit.cloud). Then I deployed an older app, which I haven't updated in a bit and still has the old registry url (node.bit.cloud) and it worked: I then changed the first app's .npmrc to point to node.bit.cloud too and the build succeeded...
In other words, it seems like the registry URL keeps changing back and forth from node-registry.bit.cloud to node.bit.cloud, or am I missing something?

from bit.

benjgil avatar benjgil commented on June 6, 2024

All these issues are almost certainly because your npmrc only contains a token for node.bit.cloud, but not for node-registry.bit.cloud

Just adding an entry telling bit to look for scoped packages in node-registry.bit.cloud isnt enough, you need to also provide a token for that registry

Note to all - this will be managed better automatically by bit from the next stable version of bit, which will automatically set and update tokens for bit registries (as it used to do until around nov 23)

from bit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.