How to create a NPM Package Registry on Gitlab

Поделиться
HTML-код
  • Опубликовано: 17 окт 2021
  • Here is a updated video of this plus the creation of a React component library and using the component:
    • NPM Gitlab Package Reg...
    Creating a package registry on gitlab for npm using publish via the pipeline.
    My video on using Yarn2+ (yarnrc.yml) instead of npmrc:
    • How to use Yarnpkg/bui...
    Note: Having a .npmrc is not necessary for publishing the package.
    - Go to 9:00 to bypass this.
    Gitlab's documentation:
    docs.gitlab.com/ee/user/packa...
  • ХоббиХобби

Комментарии • 37

  • @chieeyeoh6204
    @chieeyeoh6204 6 месяцев назад

    I am so blessed to learn this up in the beginning of the year. Expecting great journey with NPM this year!!!

  • @TheTzuSun
    @TheTzuSun Год назад

    Great tutorial, following your instructions I successfully published my first gitlab package registry package.

  • @animatorstar
    @animatorstar 2 года назад +5

    In a super simple way, you explained. Thanks for this tutorial.

    • @allthingscs9448
      @allthingscs9448  2 года назад

      Thank you for the feedback! I am happy this content was helpful for you.

    • @sdblepas
      @sdblepas Год назад +1

      the issue was how we published the package and not with the code itself

    • @allthingscs9448
      @allthingscs9448  Год назад

      Sometimes it's not always what we expect. That's the cool part about problem solving is it's a constant learning experience and reminder we need to often look at problems from a wider view. :)
      Glad you were able to figure it out!

  • @jovanajevtic92
    @jovanajevtic92 2 года назад

    Very helpful video, thanks.

  • @jackblurry123
    @jackblurry123 2 года назад +1

    that was very helpful thank you

    • @allthingscs9448
      @allthingscs9448  2 года назад

      No problem! I appreciate the feedback. I'm glad it was helpful.

  • @AfifAlfiano
    @AfifAlfiano Год назад +1

    Great tutorial, thank you

  • @daveh.6098
    @daveh.6098 2 года назад +1

    thank you for your video special the last 2min :) - I also failed with the last step.

  • @mschreibernaoual
    @mschreibernaoual 2 года назад +1

    Thank you 👌

  • @modernclics
    @modernclics 2 года назад +4

    Gosh, that GitLab documentation is so confusing.

    • @allthingscs9448
      @allthingscs9448  2 года назад +2

      I agree. They need something like a standard way of creating a NPM library and then have links which explain in detail or give additional ways to create the library. Right now it feels like they tried to cram everything into one document.

  • @stanislavgurin3933
    @stanislavgurin3933 2 года назад +1

    Thank you for sharing! How could we use CI_JOB_TOKEN like variable. I know we could do in bash CI_JOB_TOKEN="our_token". But how make GitLab to pass it from ci/cd stored variables?

    • @allthingscs9448
      @allthingscs9448  Год назад

      Are you trying to install the package in a pipeline? I apologize, I'm not sure I completely understand what you are asking.

  • @williamdiegodeoliveira4780
    @williamdiegodeoliveira4780 9 месяцев назад +1

    Great!

  • @cristobalmancillacayupan610
    @cristobalmancillacayupan610 2 года назад +1

    thanks!

  • @damiantriebl1747
    @damiantriebl1747 2 года назад

    i finish this, but in the las part: 19:20 minutes, appears to me a windos of github????(i use gitlab) , i need to connect github, but when connect github says permission denied =(

    • @allthingscs9448
      @allthingscs9448  2 года назад +1

      Do you mean when you try to push your code to gitlab?
      This is likely because you need to set up a ssh key on your computer and connect it to your gitlab account.
      Do a Google search for: "generating a ssh key for gitlab."

  • @joelaravena3726
    @joelaravena3726 Год назад

    Gracias ! 🇨🇱

  • @damiantriebl1747
    @damiantriebl1747 2 года назад

    i need have a npm pro account? or for free account is work?

    • @allthingscs9448
      @allthingscs9448  2 года назад +1

      Hey,
      You shouldn't need a npm account to publish a package to gitlab. Remember, this is the gitlab package registry, not GitHub.

  • @_flavio_silva
    @_flavio_silva 2 года назад

    You can leave the link to the source code here :)

    • @allthingscs9448
      @allthingscs9448  Год назад +1

      Unfortunately I don't have the link to the source code. However, I hope the instructions in this video are helpful in pointing you in the correct direction.

  • @DarrenHillPersonal
    @DarrenHillPersonal 2 года назад +2

    I think you need to explicitly say your package is Public ... to avoid needing an Auth_Code

    • @allthingscs9448
      @allthingscs9448  2 года назад

      Yes, that may work on gitlab.com but if i remember correctly that isn't an option when you're on your own instance of gitlab. i.e. gitlab.example.com.
      I will look into it though when I have time. Thank you for the suggestion.

  • @alejandrotrujillo4113
    @alejandrotrujillo4113 Год назад

    npm ERR! code E404 :(

    • @allthingscs9448
      @allthingscs9448  Год назад

      Double check your .npmrc file to ensure you are getting the private registry in the correct manner. The registry is very picky about how the package is retrieved and will throw a 404 if done so incorrectly.