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

Enable using a custom npm registry #35

Closed
danielvanmil opened this issue Jul 5, 2017 · 4 comments
Closed

Enable using a custom npm registry #35

danielvanmil opened this issue Jul 5, 2017 · 4 comments

Comments

@danielvanmil
Copy link

The npm resolver does not take the registry in the .bowerrc into account. Is it possible to install artifacts from a different npm registry as https://registry.npmjs.org and how?

@kamranayub
Copy link

We'd want a different registry though, right? e.g. we have a custom bower registry specified but for this resolver specifically, I'd want to add a custom npm registry

@kamranayub
Copy link

So just an update, this works as expected (for me). I have a registry defined in .npmrc and the bower install is using this just fine (since it delegates to npm, it "just works"). So I'm good here for my use case 👍

@mjeanroy
Copy link
Owner

I'm closing this issue since specifying registry in the .npmrc file is the way to go. Feel free to comment, or re-open the issue, if you disagree.

@madbonez
Copy link
Contributor

madbonez commented Apr 11, 2018

issue still actual
as i see npm-utils.js contains function wich delegates manifest resolving to 'pacote' package

...
function getManifest(pkg) {
return require('pacote').manifest(pkg).then(function (pkgJson) {
...

problems starts here. you doesnt pass second argument in function. But second argument is npm config object. So while you didnt specify this it will be default

this.registry = opts.registry || 'https://registry.npmjs.org'

And thats why .npmrc seems like ignored partly

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

No branches or pull requests

4 participants