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

--registry parameter is not effective,when .modules.yaml exist #7507

Closed
2 of 4 tasks
wszgrcy opened this issue Jan 9, 2024 · 1 comment · Fixed by #7515
Closed
2 of 4 tasks

--registry parameter is not effective,when .modules.yaml exist #7507

wszgrcy opened this issue Jan 9, 2024 · 1 comment · Fixed by #7515
Assignees

Comments

@wszgrcy
Copy link

wszgrcy commented Jan 9, 2024

Verify latest release

  • I verified that the issue exists in the latest pnpm release

pnpm version

No response

Which area(s) of pnpm are affected? (leave empty if unsure)

CLI, Lockfile, Package manager compatibility

Link to the code that reproduces this issue or a replay of the bug

No response

Reproduction steps

// success
pnpm i lodash
//error
pnpm install my-private-repo   --registry=http://127.0.0.1:5555  -D

throw error

 ERR_PNPM_FETCH_404  GET https://registry.npmjs.org/my-private-repo: Not Found - 404

This error happened while installing a direct dependency of /home/user/my-project/adfs

my-private-repo is not in the npm registry, or you have no permission to fetch it.

An authorization header was used: Bearer npm_[hidden]
Progress: resolved 1, reused 1, downloaded 0, added 0

if I install my-private-repo first(without node_modules exist),It will install success

Describe the Bug

I think node_modules/.modules.yaml file save registries and then --registry not work

Expected Behavior

This operation can be successfully executed on NPM, so I hope it can also be compatible

Which Node.js version are you using?

20.10.0

Which operating systems have you used?

  • macOS
  • Windows
  • Linux

If your OS is a Linux based, which one it is? (Include the version if relevant)

Ubuntu 22

@hjhcos
Copy link

hjhcos commented Jan 10, 2024

pnpm service not use

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

Successfully merging a pull request may close this issue.

3 participants