Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Bulk copy from npmjs registry

    Scheduled Pinned Locked Moved Support
    npmproget
    5 Posts 2 Posters 24 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      afonseca_0319
      last edited by

      I am looking for a scripted way to bulk import npm packages from the npm official registry to a proget private feed. Unfortunately, I have not find any documentation to do this, but I have seen the user interface offers the possibility to add a package using the option "Pull from External Registry", which is basically what I need.

      036ebee9-ec95-423c-b85a-3f5928c85afd-image.png

      I really would like to avoid going to an UI automation (puppeter for example) to upload the packages thought the UI. So, is there access to any short of API endpoint to performs the same functionality than the ""Pull from External Registry" option ?

      1 Reply Last reply Reply Quote 0
      • atrippA Offline
        atripp inedo-engineer
        last edited by

        Hello; please review the Drop Path and Bulk Package Importing docs for how to configure this on your feed.

        Then, you can just download the packages you want to that drop path.

        A 1 Reply Last reply Reply Quote 0
        • A Offline
          afonseca_0319 @atripp
          last edited by

          @atripp said in Bulk copy from npmjs registry:

          Hello; please review the Drop Path and Bulk Package Importing docs for how to configure this on your feed.

          Then, you can just download the packages you want to that drop path.

          First and foremost, thank you so much for your reply, pretty much on point of what I needed. I have a follow up question regarding the package: which files I should put in the folder? the ones that are located on the node_modules are valid? or do I need to do any sort or processing?

          Thanks you so much for your input!

          1 Reply Last reply Reply Quote 0
          • atrippA Offline
            atripp inedo-engineer
            last edited by

            I'm not so familiar with what the node_modules folder is... but ProGet will be looking for zip (tar/gz) files, and then will open, inspect, import, and delete those files one-by-one .

            A 1 Reply Last reply Reply Quote 0
            • A Offline
              afonseca_0319 @atripp
              last edited by

              @atripp Thanks for the clarification, you have me pointed to the tooling and steps I will need to perform the bulk import. I will have to try, but I think I have enough information to script this task.

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • 1 / 1
              • First post
                Last post
              Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation