Skip to content

[BUG] local $PWD .npmrc not used when loading npm config #2904

@zhanwang626

Description

@zhanwang626

Hi npm/cli team, I am a software engineer from LinkedIn. Currently handreds of UI engineers suffered from this problem when running npx command. Can we fix this issue instead of running npx with setting --userconfig .npmrc everytime? Thanks!

What / Why

When running npx commands under some JavaScripts project directory, it will not pick up .npmrc from working directory as expected. Instead it will only pulls from ~/.npmrc and ignores any .npmrc in current working directory.

When

  • Whenever I run npx command

Where

npx

Current Behavior

npx only pulls from ~/.npmrc and ignores any .npmrc in current working directory.

Expected Behavior

npx can picked up working directory's .npmrc successfully by default.

References

npm/npx#13

Metadata

Metadata

Assignees

Labels

Bugthing that needs fixing

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions