#Installing organization-specific dependencies
1 messages · Page 1 of 1 (latest)
What error are you getting? Try bun install --verbose for more info on why it's failing
what does your bunfig.toml look like?
what does your existing npmrc look like for that registry?
also I wonder if you need your username and password in the bunfig
hmm that one doesn't point at a scoped registry, that's just adding auth to the default npm registry
given that npmrc I'd expect something like
[install]
registry = { url = "https://registry.npmjs.org", token = "$NPM_CLASSIC_TOKEN" }
do you have a local npmrc?
gonna sound silly but try using key _auth or _authToken instead of token
dang, sorry dude, not sure what else to try
yeah but npm login just writes to npmrc I think. I've been able to point bun at my own company's internal packages with the right settings in bunfig.toml. Mine looks something like:
"@company" = { username = "$JFROG_USERNAME", password = "JFROG_API_KEY", _auth = "JFROG_TOKEN", url =
https://company.jfrog.io/artifactory..." }
I would expect it to be the same as wht's in your npmrc
Have you tried:
[install.scopes]
"@company" = { token = "$NPM_CLASSIC_TOKEN", url = "https://registry.npmjs.com/" }
oh yeah that would explain the 404
I think you definitely don't want the full path like you've been including with the trailing /@company
gah, I'm sure there's some permutation of the different things we've tried that would work haha
oh that's interesting, I didn't realize npm could be set up with 2fa
I wouldn't be surprised if bun just didn't support your usecase yet. I'm blocked myself at work because bun doesn't support setting cafile in the config like npmrc does, and a couple of my company's internal packages need our own CA cert
hmm yeah that github issue does look similar. You tried including email and password in bunfig.toml right?