Comments (7)
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.
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.
bump
from bit.
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.
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.
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.
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)
- Bit snap followed by bit reset clears the forkedFrom entry to the bitmap file HOT 2
- Vite test error cannot be imported in a CommonJS module using require() HOT 3
- mocking for previews HOT 2
- Typo in docs/intro HOT 3
- I can't run express server with sqlite3 HOT 2
- Best Practice For Importing Another Bit Component to Avoid Ripple CI Failure HOT 5
- ReferenceError: jest is not defined HOT 1
- Export Error HOT 1
- Bit Installation error:- reason: self signed certificate in certificate chain HOT 3
- [WORKSPACE] How to move my package.json/ lock deps to bit workspace ? HOT 1
- [WORKSPACE] Monorepo packages/apps dependencies managements HOT 3
- [WORKSPACE] Bit status how to not be aware of some import s HOT 4
- Very slow to install bit HOT 3
- Not possible to add remote bit scope HOT 2
- [WORKSPACE] How can we install dependencies needed only HOT 7
- New workspace env not found error HOT 2
- Multiple issues when trying to tag many components HOT 2
- next/image error - React.jsx: type is invalid -- expected a string (for built-in components) or a class/function but got: object HOT 1
- Inconsistent typescript rules between custom environment compiler and build task HOT 6
- Custom Vite config for Vue App HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bit.