Skip to content

NPM_CONFIG_USERCONFIG seems broken #4568

Closed
@timdp

Description

Do you want to request a feature or report a bug?

A bug.

What is the current behavior?

Setting npm_config_userconfig to a path to npmrc with //registry.npmjs.org/:_authToken=TOKEN_HERE doesn't seem to work anymore. The token is never read.

What is the expected behavior?

Installation should use the token from my custom npmrc during installation. Seb originally added support for this in #1519.

To be clear: what I'm doing is running this on a CI-like server, where users are able to supply their own registry token, allowing the server to install their private packages. I write the token to a temp file and pass the path to the file in the environment variable for the yarn process.

This worked with 0.28.4 and is broken in 1.x.

Thanks!

Metadata

Assignees

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