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

[BUG] package-lock custom resolved url #3533

Closed
1 task done
fishcharlie opened this issue Jul 10, 2021 · 1 comment
Closed
1 task done

[BUG] package-lock custom resolved url #3533

fishcharlie opened this issue Jul 10, 2021 · 1 comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 7.x work is associated with a specific npm 7 release

Comments

@fishcharlie
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

package-lock.json uses private verdaccio endpoint for the resolved field as opposed to the NPM registry.

One work around for this is to do a find all and replace in the package-lock.json whenever you run npm i. But that is a real hassle.

Expected Behavior

There to be an option to not use the private verdaccio endpoint for the resolved field so when other users run npm i they don't run into errors.

Steps To Reproduce

  1. Set .npmjs to registry=http://thisismyprivateverdaccioendpoint.com/
  2. Create a project (npm init)
  3. Run npm i --save express (or any package)
  4. Notice how package-lock.json will have the resolved property set to the registry set in .npmjs
  5. Send project to someone else without node_modules folder
  6. Have them run npm i
  7. Notice that there is an error

Environment

  • OS: macOS 12.0 Beta (21A5268h)
  • Node: v16.4.2
  • npm: 7.18.1
@fishcharlie fishcharlie added Bug thing that needs fixing Needs Triage needs review for next steps Release 7.x work is associated with a specific npm 7 release labels Jul 10, 2021
@wraithgar
Copy link
Member

Closing as duplicate of #3530

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 7.x work is associated with a specific npm 7 release
Projects
None yet
Development

No branches or pull requests

2 participants