Skip to content

ng add --registry=<registryUrl> #14189

@dherges

Description

@dherges

🚀 Feature request

Command (mark with an x)

$ ng add --registry=http://localhost:4873 @foo/bar
- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [x] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Description

ng update --registry=<registry> allows to update packages from private registry.

However, ng add offers no capability to add a package from a private registry. The current workaround is to manually create a .npmrc file in the CLI workspace root, adding the registry configuration there.

Describe the solution you'd like

Describe alternatives you've considered

See above: .npmrc file.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions