Skip to content

Setting own npm registry (behind corporate proxy) #984

@nxpatterns

Description

@nxpatterns

Following situation:

> vue -V
3.0.0-beta.6

> vue create myproject -r https://whatever.de/artifactory/api/npm/npm-remote/
 ERROR  RequestError: Error: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443

> vue create myproject --registry https://whatever.de/artifactory/api/npm/npm-remote/
 ERROR  RequestError: Error: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443

How can I set my own npm artifactory? We are behind a corporate proxy.

My current workaround was modifying the cli-source-code. Can someone help me? Many thanks!

that's the .npmrc, installation of other npm packages works properly

registry=https://whatever.de/artifactory/api/npm/npm-remote/
_auth="blabla..."
always-auth=true
email=its.me@example.com
proxy=http://proxy.whatever.de:8080
https-proxy=https://proxy.whatever.de:8080
no_proxy=https://whatever.de/artifactory/api/npm/npm-remote/
strict-ssl=false

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions