question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How can I publish an existing package from my node_modules to the registry

See original GitHub issue

First of all , I am sorry if I am approaching this wrong or I missed some docs or any relevant info

Is your feature request related to a problem? Please describe. It is not a feature request though but still using this template It is more like better usage docs

I have installed this and as mentioned in the docs, set the npm registry to verdaccio and also added the profile and user. now how do I publish a package from my node_modules to here. I tried by navigating to my project directory which is having package.json and ran the verdaccio publish command but it telling please update the version of the package. Here how can I update the 3rd party package’s version which is not even built. Like I am doing this for @bable/core and I really dont want to change the package.json version property for this package from my node_modules

Describe the solution you’d like A clear and concise description of what you want to happen. writing better docs for the usage sections

Describe alternatives you’ve considered A clear and concise description of any alternative solutions or features you’ve considered. None Additional context Add any other context or screenshots about the feature request here. image

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
LOLdeveloprcommented, Sep 7, 2019

Thats what, I was approaching this all in wrong way I thought we can publish an existing package without bumping the version. Okay This clarifies a lot Again thanks a lot

1reaction
juanpicadocommented, Sep 7, 2019

@LOLdevelopr you need to be your your process follow the following constrains.

  • The version you are trying to publish does not exist in any of the uplinks (which if you are using the default one will be the case @babel/core@7.4.4. ✅
  • Uplinks if the package access match '@*/*' must not contains a proxy property.

If you cannot afford any of those above. Then the last option is create a specific package section for @babel/core without proxy.

 '@babel/core':
    access: $all
    publish: $authenticated
   unpublish: $authenticated
 '@*/*':
    # scoped packages
    access: $all
    publish: $authenticated
    unpublish: $authenticated
    proxy: npmjs

Reminder, the order is important, your section always above the default one

Verdaccio always check on publish wether the version you are trying to publish already exist in ANY o the uplinks defined in the proxy section, if such case is positive, then you get EPBULSIHCONFLICT error.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Creating and publishing scoped public packages
On the command line, navigate to the root directory of your package. cd /path/to/package · To publish your scoped public package to the...
Read more >
How to create and publish a node_module on npm registry for ...
Create and publish your very first own node_module on npm registry for any JavaScript Project along with NPM Introduction.
Read more >
How to Create and Publish your own NPM Package
Create an account in the NPM registry, write some code for your package and publish.
Read more >
Publishing a Node.js Module to NPM
You can search for existing package names through the search bar on the home page.
Read more >
Node Packaged Modules and npm Registries
Publishing your own packages to a npm hosted repository allows you to share packages across your organization or with external partners. The npm...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found