Skip to content

Support for private npm registries. #1868

@serkanyersen

Description

@serkanyersen

What problem does this feature solve?

We have a custom vue-cli plugin for our companies code, which contains propriety code and we cannot publish it to NPM. We host this on Artifactory. We usually install packages with .npmrc files. but that file is also brought by the plugin. We need an initial way to tell vue cli where to find packages so that vue add command is also usable.

What does the proposed API look like?

vue add command can use --registry flag to pass down the custom registry to either yarn or npm. That way can reduce the plugin installation to a single command

vue add @ourCompany/our-plugin --registry=https://artifactory.com/npm...

Same thing can be applied anywhere vue-cli interacts with npm or yarn

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions