Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pnpm should prefer npmRegistry config instead of global npm config #737

Closed
coolyuantao opened this issue Sep 28, 2023 · 1 comment · Fixed by #751
Closed

pnpm should prefer npmRegistry config instead of global npm config #737

coolyuantao opened this issue Sep 28, 2023 · 1 comment · Fixed by #751

Comments

@coolyuantao
Copy link

coolyuantao commented Sep 28, 2023

To configure the server, I create a config.json file then pass it to the server bootstrap command.

  "npmRegistry": "http://npm.xxxx.cn",

But I found that when pnpm install packages, it bypassed the npmRegistry config and directly used the global registry config.

As a result, the packages in the private npm registry could not be loaded correctly. The solution can only be achieved by modifying the global registry config.

Is it a bug or a feature?

@ije
Copy link
Member

ije commented Sep 28, 2023

i guess it's kind of a bug, the npmRegistry in config.json has higher priority

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants